identity_get_user_roles_in_organization
Retrieves a user's roles in a specific organization using the user and organization IDs; deprecated in favor of the SCIM users endpoint.
Instructions
[DEPRECATED] Get the user's roles.
Use this API instead: * /scim/v2/Users/{{userUrn}} Currently one user can belong to exactly one organization. ### Access Policy | Role | Access | | ----- | ----- | | Platform operator | ✔️ | | Organization Owner | ✔️ | | Organization Member | ❌ | | Service Account (Whitelisted Client) | ❌ |
GET /csp/gateway/am/api/users/{userId}/orgs/{orgId}/roles
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userId": "<userId>",
"orgId": "<orgId>"
},
"name": "identity_get_user_roles_in_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | (path) | |
| userId | Yes | (path) |