Update a user's roles
Update Organization and Workspace roles for a user.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Path parameters
organizationId
The ID of the Organization to which the user belongs.
userId
The user's ID
Request
The request body for updating the user's roles
deploymentRoles
The user’s updated Deployment roles. Requires also specifying an OrganizationRole
.
organizationRole
The user's updated Organization role.
Allowed values:
workspaceRoles
The user’s updated Workspace roles. Requires also specifying an OrganizationRole
.
Response
The response body containing the user's roles
deploymentRoles
A list of the subject's Deployment roles. Currently only for API tokens.
organizationRole
The subject's Organization role.
Allowed values:
workspaceRoles
A list of the subject's Workspace roles.