Roles
Roles
List user role assignments
Assign role to user
Revoke role from user
ModelsExpand Collapse
RoleAssignment = object { id, created_at, principal_id, 8 more } Represents a role assigned to a principal within a zone
Represents a role assigned to a principal within a zone
Unique identifier of the role assignment
Entity creation timestamp
ID of the principal the role is assigned to (a user, application, or group ID).
The kind of principal the role is assigned to: user, application, or group. A role assigned to a group is inherited by that group's members.
ID of the assigned role
Role identifier: a lowercase slug (letters and digits separated by single hyphens or underscores), unique per owner type within a zone. Role identifiers surface in policy evaluation, so the slug restriction keeps them unambiguous in policy text.
role_owner_type: "platform" or "customer"Owner type of the assigned role. Disambiguates roles that share an identifier across owner types.
Owner type of the assigned role. Disambiguates roles that share an identifier across owner types.
Entity update timestamp
Zone this assignment belongs to
The ID of the scoped resource. Null when the assignment is unscoped.
The kind of resource this grant is scoped to (e.g. zone). Null when the assignment is unscoped (applies to the owning zone itself).
RoleAssignmentCreate = object { owner_type, role_id, role_identifier, 2 more } Schema for assigning a role to a principal. Provide exactly one of role_id or role_identifier. When role_identifier is used, owner_type is required to disambiguate roles that share an identifier across owner types; owner_type must be omitted when role_id is used.
Schema for assigning a role to a principal. Provide exactly one of role_id or role_identifier. When role_identifier is used, owner_type is required to disambiguate roles that share an identifier across owner types; owner_type must be omitted when role_id is used.
owner_type: optional "platform" or "customer"Owner type of the role to assign. Required with role_identifier (an identifier is unique only per owner type); must be omitted with role_id.
Owner type of the role to assign. Required with role_identifier (an identifier is unique only per owner type); must be omitted with role_id.
ID of the role to assign. Provide exactly one of role_id or role_identifier; owner_type must be omitted when role_id is used.
Role identifier: a lowercase slug (letters and digits separated by single hyphens or underscores), unique per owner type within a zone. Role identifiers surface in policy evaluation, so the slug restriction keeps them unambiguous in policy text.
The ID of the resource to scope the grant to. Provide together with scope_type, or omit both for an unscoped assignment. When scope_type is zone, this must reference a different zone in the same organization.
The kind of resource to scope the grant to (e.g. zone). Provide together with scope_id, or omit both for an unscoped assignment (applies to the owning zone itself). Only platform roles on the org zone may carry a scope.