identity_patch_user_service_roles_in_organization
Update a user's service roles within an organization by adding or removing roles. This endpoint is deprecated; use the current user API instead.
Instructions
[DEPRECATED] Edit the user's service roles.
Use this API instead: * /cloudapi/1.0.0/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) | ❌ |
PATCH /csp/gateway/am/api/users/{userId}/orgs/{orgId}/service-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_service_roles_in_organization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body | |
| orgId | Yes | (path) | |
| userId | Yes | (path) |