On this page
Before you start: Admin role, or a member-management role. You can only grant permissions you hold.
- Open Organizations and click New role under Roles.
- Enter Name (for example DBA) and optional Description.
- Tick Permissions (write/apply ticks view) and click Create role.
- Assign on top of a built-in role: - Member: row menu, Change role, pick Custom role, Save role. - Group: Give a role to a group under Roles → Given by groups. - Token: select during token creation.
Role created appears. Edit updates holders on the next request. Delete removes it everywhere and shows affected counts.
Through the API#
- Permissions: GET
/organizations/{id} /roles - Create (POST
/organizations):/{id} /roles bashcurl -X POST -H "Authorization: Bearer $PRINCIPAL_TOKEN" \ -H "Content-Type: application/json" \ https://principal.example.com/api/v2/organizations/$ORG/roles \ -d '{"name":"DBA","permissions":["targets:read","targets:manage", "access:read","access:manage","access:apply"]}' - Assign to member (PUT
/organizations) or group (PUT/{id} /memberships /{identity_id} /organizations),/{id} /group-roles /{group_id} rolerequired (400if omitted):json{"role":"user","custom_role_id":"<role-id>"}
Unknown permission: 400. Duplicate name: 409. Max 50 custom roles per organization.