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
Organization ID (UUID)
Responses
OK
OrgRolesResponse · 3 fields
9 fields
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:readMembers of the organization who hold the role on top of their built-in role.
Groups that give the role to their direct members.
Usable API tokens that hold the role.
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:read2 fields
adminvieweruseraccess:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:readBad Request: the organization ID is not a UUID.
Forbidden: the caller lacks members:read.
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.