Create a custom role: a name and permissions from the permission list. Every permission of the role must be a permission of the caller. An organization has at most 50 custom roles. Needs members:manage.
- Max 50 custom roles (
409duplicate,400unknown permission,403 role_exceeds_callerabove caller permissions). manageandaccess:applyimply theirreadprerequisites (jobs:read,targets:read,identities:read). Assign via PUT/organizations./{id} /memberships /{identity_id}
Parameters
Organization ID (UUID)
Request body application/json · OrgCustomRoleRequest
A manage or access:apply permission also brings the read permission of its area and jobs:read. Drift and applications permissions also bring targets:read, access:manage, access:apply and applications:manage also bring targets:read and identities:read.
access:applyaccess:manageaccess:readapplications:manageapplications:readaudit:readdrift:managedrift:readidentities:manageidentities:readjobs:managejobs:readmembers:managemembers:readnotifications:managenotifications:readorganization:readsecurity:managesecurity:readtargets:managetargets:readtokens:managetokens:readResponses
Created
OrgCustomRoleResponse · 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.
Bad Request: the name is empty or too long, or a permission is not in the permission list.
Forbidden: the caller lacks members:manage, or the role names permissions the caller does not have (details.reason=role_exceeds_caller, details.missing_permissions lists them).
Not Found: the organization, role or group does not exist or belongs to another organization.
Conflict: another role of the organization has this name, or the organization already has 50 custom roles.
Common errors: 401 413 429 503 504. They mean the same for every operation, see Errors.