Roles
Get the roles the credential creator can see.
Changed onReturns the roles visible to the user who created this credential, including visible legacy roles. Requires the "User Access Management - Read" permission. When User Access Management for groups has not been enabled for the tenant, the call is rejected before roles are read.
get/api/v2/roles
Request
- Base URLhttps://app.blackkitetech.com
- AuthOAuth 2Client credentialsToken URLhttps://app.blackkitetech.com//api/v2/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
page_numberinteger
Example:1
The number of the page requested. Values below 1 are clamped to 1.
page_size10 | 20 | 30 | 50 | 100 | 250
Example:10
The number of result items in a single response. Allowed values are 10, 20, 30, 50, 100 and 250. Any other value is clamped to 10.
Response
A bare array. Field order is RoleId, Name, Description, NumberOfCompanyPermissions, NumberOfTenantPermissions, NumberOfGroups, Permissions.
Example response
[
{
"RoleId": 11,
"Name": "Analyst",
"Description": "Reads company data",
"NumberOfCompanyPermissions": 1,
"NumberOfTenantPermissions": 1,
"NumberOfGroups": 2,
"Permissions": [
{
"PermissionName": "Company read"
}
]
}
]Changes
- info
endpoint added
- info