Skip to content

Assign role

Request

Assign a role to users or groups

Security
AdminAccessToken or ClientAccessToken
Path
app_idstringrequired

ID of the application

role_idstringrequired

ID of the role to assign

Bodyapplication/jsonrequired
entity_idsArray of stringsrequired

List of entities to assign the role. All entites must be of the same type.

entity_typestringrequired

Type of entities to assign the role. All entities in entity_ids must be of this type.

Enum:"User""Group""Application"
curl -i -X POST \
  'https://api.sbx.transmitsecurity.io/cis/v1/applications/{app_id}/roles/{role_id}/assignments' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "entity_ids": [
      "string"
    ],
    "entity_type": "User"
  }'

Responses

Response
No content