/api/configs/role#
Roles config is used to configure user roles and permissions for access control.
Role#
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
String |
Name of the role. |
Required field |
|
String |
Quick explanation of the purpose of the role. |
Required field |
|
Boolean |
If true, the role cannot be modified. This cannot be set for any role besides the admin role. |
|
|
List[Policy] |
List of policies which define the actions, resources, and effect for the role. |
|
Policy#
A policy defines which actions a role can or cannot perform, optionally scoped to specific resources.
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
String |
Whether the policy allows or denies access. Must be |
|
|
List[String] |
List of semantic action strings (e.g., |
Required field |
|
List[String] |
List of resource patterns this policy applies to (e.g., |
|
Action#
An action is a string in the format <resource_type>:<action_name>.
Component |
Description |
|---|---|
|
The type of resource (e.g., |
|
The operation to perform (e.g., |
Wildcards are supported:
*:*– matches all actions on all resourcesworkflow:*– matches all workflow actions*:Read– matches all Read actions across all resource types
See Actions and Resources Reference for the full list of actions and resource scoping rules.