Skip to content

Set org's roles and role groups

Request

Update the roles and role groups of the organization for a specific application, which will replace any existing assignments. These roles and role groups must first be created for the application. Once added to the organization, roles that belong to these role groups or are directly assigned can be assigned to members of the organization to control their access to the application.

Required permissions: organizations:edit, orgs:edit.

Security
AdminAccessToken
Path
app_idstringrequired

ID of the application

organization_idstringrequired

ID of the organization

Bodyapplication/jsonrequired
role_group_idsArray of strings

Role group ids

role_idsArray of strings

Role ids

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

Responses