Gets a list of platform roles for the authenticated org.
Required permission
Os > Admin > Roles > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.roles
[array] requiredAn array of org roles.- {object}An org role object.
id
string requiredID of the role.pattern^[A-Za-z0-9-]+$name
string requiredDisplay name of the role.description
stringDescription of the role.restrictions
{object} requiredenabled
boolean requiredWhether restrictions are enabled.createdAt
stringCreation time.updatedAt
stringLast updated.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/org-roles
Example response
200 OK
A list of platform roles for the org.
JSON
{
"data": {
"roles": [
{
"id": "developer",
"name": "Developer",
"description": "Role for developers.",
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}