Create a role
Select + New role, name the role, and add one or more conditions. Each condition has:- A trace field enabled for Access rules
- An operator supported by that field’s type
- A custom value, boolean, or user attribute such as
user.tenant_id
Attribute names become available as policy values automatically when they are added to a user.
How access combines
A user can hold more than one role. Their visible traces are the union of everything those roles allow. A role can also contain multiple stored policies; any matching policy grants the trace. The built-inadmin role always sees every trace and cannot be edited.
Advanced policies
The visual builder safely edits the common policy patterns. For expressions it cannot represent, the role remains read-only in Setup. Use the policy guide and Roles API for those changes.Related topics
Users
Assign roles and attributes to accounts.
Policy language
See supported expressions and examples.
Roles API
Create, replace, and delete roles over REST.