CData · Schema
UserRoleAssignment
A direct role assignment made via POST /users/{id}/roles.
DataData AccessData ConnectivityDatabaseNoSQLSQLA2A
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Assignment identifier. |
| user_id | string | The user this role is assigned to. |
| role_id | string | The role identifier. |
| role_name | string | The name of the role. |
| role_type | string | Always `system_role` (admin) for assignments made via this endpoint. |
| grant_type | string | Always `direct` for assignments made via this endpoint. |
| granted_at | string | ISO 8601 UTC. |
| granted_by | string | The user who granted the role. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/cdata/main/json-schema/cdata-user-role-assignment-schema.json",
"title": "UserRoleAssignment",
"description": "A direct role assignment made via POST /users/{id}/roles.",
"x-generated": "2026-10-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cdata-users-api-openapi.yml#/components/schemas/UserRoleAssignment",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Assignment identifier."
},
"user_id": {
"type": "string",
"format": "uuid",
"description": "The user this role is assigned to."
},
"role_id": {
"type": "string",
"format": "uuid",
"description": "The role identifier."
},
"role_name": {
"type": "string",
"description": "The name of the role."
},
"role_type": {
"type": "string",
"enum": [
"system_role"
],
"description": "Always `system_role` (admin) for assignments made via this endpoint."
},
"grant_type": {
"type": "string",
"enum": [
"direct"
],
"description": "Always `direct` for assignments made via this endpoint."
},
"granted_at": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 UTC."
},
"granted_by": {
"type": "string",
"format": "uuid",
"description": "The user who granted the role."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cdata-user-role-assignment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.