identity_patch_user_roles_in_organization
Add or remove roles for a user in a specific organization via a deprecated gateway PATCH endpoint; migrate to the user roles API for current changes.
Instructions
[DEPRECATED] Edit the user's 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}/roles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Request body | |
| orgId | Yes | (path) | |
| userId | Yes | (path) |