Skip to content

Set member's roles

Request

Update the roles of a member of the organization to control their access to an application. This will replace all the member's roles, if they exist. The roles must first be created for the application and added to a role group for the application, and the role group must be added to the organization.

Required permissions: organizations:edit, orgs:edit.

Security
AdminAccessToken
Path
app_idstringrequired

ID of the application to assign the roles to

organization_idstringrequired

ID of the organization to assign the roles to

member_idstringrequired
Bodyapplication/jsonrequired
role_idsArray of stringsrequired

Ids of the roles

Example:
[ "role1", "role2" ]
curl -i -X POST \
  'https://api.sbx.transmitsecurity.io/cis/v1/applications/{app_id}/organizations/{organization_id}/members/{member_id}/roles' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "role_ids": [
      "role1",
      "role2"
    ]
  }'

Responses