Role

These endpoints let you manage roles in the system.

Get Roles

get

Return the roles.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Query parameters
pageintegerOptional

Page number

Default: 0Example: 0
sizeinteger · min: 1 · max: 50Optional

Page size

Default: 10Example: 10
querystringOptional

Search query

Supported KeysSupported OperatorsNotes
id:Equal operator
Support multiple values with each value separated by the ; delimiter
name:Like operator
Example: {"summary":"Search a role by name","value":"name:admin"}
Responses
chevron-right
200

OK

application/json
totalPagesintegerRequired

Total number of pages available

lastbooleanRequired

Indicates whether this is the last page

totalElementsintegerRequired

Total number of elements across all pages

numberOfElementsintegerRequired

Number of elements in the current page

firstbooleanRequired

Indicates whether this is the first page

sizeintegerRequired

Size of the page (number of elements per page)

numberintegerRequired

Current page number (zero-indexed)

get
/v1/roles

Get Role by Id

get

Return the role by Id.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
idstringRequired

Role ID

Example: 8742a724-0a64-4b1f-92c9-cbcce0c15a92
Responses
chevron-right
200

OK

application/json
idstringOptional

Role identifier

namestringOptional

Role name

descriptionstringOptional

Role description

roleTypestring · enumOptional

Type of role

Possible values:
cascadeOrganizationPermissionbooleanOptional

Whether organization permissions cascade to child organizations

get
/v1/roles/{id}

Get Role Authorities

get

Return the role authorities.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
idstringRequired

Role ID

Example: 8742a724-0a64-4b1f-92c9-cbcce0c15a92
Query parameters
pageintegerOptional

Page number

Default: 0Example: 0
sizeinteger · min: 1 · max: 50Optional

Page size

Default: 10Example: 10
Responses
chevron-right
200

OK

application/json
totalPagesintegerRequired

Total number of pages available

lastbooleanRequired

Indicates whether this is the last page

totalElementsintegerRequired

Total number of elements across all pages

numberOfElementsintegerRequired

Number of elements in the current page

firstbooleanRequired

Indicates whether this is the first page

sizeintegerRequired

Size of the page (number of elements per page)

numberintegerRequired

Current page number (zero-indexed)

get
/v1/roles/{id}/authorities

Get Role Permissions

get

Return the role permissions.

Authorizations
AuthorizationstringRequired

Bearer authentication header of the form Bearer <token>.

Path parameters
idstringRequired

Role ID

Example: 8742a724-0a64-4b1f-92c9-cbcce0c15a92
Query parameters
expandedbooleanOptional

Controls how permissions are returned:

  • false (default): Returns raw permissions as stored in the database without any transformation. Permissions with dataId="ALL" will be returned as-is.
  • true: Returns expanded permissions where:
    1. Roles with ADMIN type will get all available dataId permissions
    2. Any permission with dataId="ALL" will be expanded to show all available dataId permissions for the same dataType

Raw permissions show the exact database records, while expanded permissions show the effective access granted to the role after applying permission inheritance rules.

Default: falseExample: false
Responses
chevron-right
200

OK

application/json
get
/v1/roles/{id}/permissions

Last updated