Roles, Policies & Permissions
Roles, Policies & Permissions
Define role-based access control in code.
Roles, Policies & Permissions
Define role-based access control in code.
Confident AI uses role-based access control (RBAC). Access is granted by composing three building blocks — you bundle permissions into policies, bundle policies into roles, then assign roles to members:
traces:read). They are predefined by the platform, so you can only list them.Each building block exists independently at both the organization and project level. Organization-level roles govern access across the organization, while project-level roles govern access within a single project. To learn more about RBAC concepts, see RBAC.
All methods on this page require an Organization API Key. See the Quickstart to create a client.
Permissions are read-only. List them to discover the ids to attach to policies.
A policy bundles permissions together. Provide permission_ids from the permissions listing above.
Each policy takes a name, a list of permission_ids, and an optional description.
Project-scoped policies use the same list, create, update, and delete operations as organization-scoped policies.
A role bundles policies together and is assigned to members. Provide policy_ids from the policies above.
Each role takes a name, a list of policy_ids, and an optional description.
Project-scoped roles use the same list, create, update, and delete operations as organization-scoped roles.
With your roles defined, assign them to your team: