identity_patch_user_roles_on_organization
Update a user's service and organization roles within an organization by adding or removing role assignments.
Instructions
[DEPRECATED] (BETA) Update user roles in organization.
Use this API instead: * /cloudapi/1.0.0/users/{{userUrn}} Update service and organization roles of a user in the organization. ### Access Policy | Role | Access | | ----- | ----- | | Platform operator | ✔️ | | Organization Owner | ✔️ | | Organization Member | ❌ | | Service Account (Whitelisted Client) | ❌ |
PATCH /csp/gateway/am/api/v3/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>",
"body": "<body>"
},
"name": "identity_patch_user_roles_on_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body | |
| orgId | Yes | (path) | |
| userId | Yes | (path) |