v1
latestOpenAPI 3.0.32026-07-24148824715.6 KBIAM
Get list of roles
Returns a list of roles. You need the View roles in organization permission to use the account_identifier parameter.
You need the "View roles in account" permission to use this endpoint.
get/v2/iam/roles
Query parameters
name_containsstring
Filter roles by name.
permissionsstring[]
Filter only roles that have all of at least one set of permissions.
[ "1+2+5" ]
account_identifierstring uuid
The identifier of the account whose roles you'd like to retrieve.
page_numberinteger
The page of results returned within the response.
page_sizeinteger
The amount of results returned within the response.
sortstring[]
Sorting criteria in the format of: [-]property (- descending modifier).
-
Default sort order is ascending (without -).
-
Multiple sort criteria are supported.
Response
OK
Example response
{
"first": "/v1/resource?page_number=1",
"next": "/v1/resource?page_number=4",
"prev": "/v1/resource?page_number=2",
"roles": [
{
"description": "View Cases",
"identifier": "00000000-0000-0000-0000-000000000000",
"name": "Supervisor",
"users_assigned_count": 1
}
],
"self": "/v1/resource?page_number=3",
"total_count": 60
}