Admin
Create a custom instance role
Create a role that grants a set of instance permissions. Assign it to users by name. Requires the roles:manage permission, which only the built-in admin role has; API keys are rejected.
POST
Create a custom instance role
Authorizations
API key or session token (Bearer)
Body
application/json
Lowercase letters, digits and hyphens, starting with a letter. admin and user are reserved.
Pattern:
^[a-z][a-z0-9-]{1,31}$Example:
"support"
Instance permissions the role grants. roles:manage belongs to the built-in admin role only.
Maximum array length:
30Available options:
users:read, users:create, users:update, users:disable, users:delete, users:credentials, users:sessions, users:api_keys, workspaces:read, workspaces:manage, workspaces:archive, workspaces:delete, audit:read, system:read, instance:settings Response
The new role
Available options:
users:read, users:create, users:update, users:disable, users:delete, users:credentials, users:sessions, users:api_keys, workspaces:read, workspaces:manage, workspaces:archive, workspaces:delete, audit:read, system:read, instance:settings Users who currently have this role.
Create a custom instance role