Docs
Live demo
GET/api/v2/organizations/{id}/roles

List the custom roles of the organization with the permission list of Principal and the permissions of the built-in roles admin, viewer and user. Every member can read it, to pick a role for an API token. How many members, groups and usable tokens hold each role is counted only for a caller with members:read, otherwise it is 0.

Readable by any member. Usage counts appear only with members:read.

Parameters

Path1 required of 1
idstringpathrequired

Organization ID (UUID)

Responses

200

OK

OrgRolesResponse · 3 fields
itemsarray of OrgCustomRoleResponserequired
9 fields
idstring · uuidrequired
namestringrequired
descriptionstringrequired
permissionsarray of string (OrgPermission)required
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
membersintegerrequired

Members of the organization who hold the role on top of their built-in role.

groupsintegerrequired

Groups that give the role to their direct members.

tokensintegerrequired

Usable API tokens that hold the role.

created_atstring · date-timerequired
updated_atstring · date-timerequired
permissionsarray of string (OrgPermission)required

Every permission a role can hold.

access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
built_in_rolesarray of OrgBuiltInRoleResponserequired
2 fields
rolestringrequired
adminvieweruser
permissionsarray of string (OrgPermission)required
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:read
400

Bad Request: the organization ID is not a UUID.

403

Forbidden: the caller lacks members:read.

404

Not Found: the organization, role or group does not exist or belongs to another organization.

Common errors: 401 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close