Update user roles in organization

Update the roles assigned to a user in a specific organization. Requires ORGANIZATION_SETTINGS_ASSIGN_ROLE_TO_USER permission.

Path parameters

organizationIdstringRequired
Organization identifier

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
userIdstringRequired
User ID
rolesIdslist of stringsRequired
Array of role IDs to assign to the user in the organization

Response

User organization roles updated successfully
successboolean
Whether the operation was successful
messagestring or null
Optional message providing more details about the operation

Errors