Update a user’s roles
Update Organization and Workspace roles for a user.
Path parameters
organizationId
The ID of the Organization to which the user belongs.
userId
The user’s ID
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
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.