This feature is in public preview.
Built-in roles
Built-in roles cover common patterns, so you often don’t need a custom role. List every role in the organization with the CLI.Admin role
Full access to all resources. Use sparingly.Viewer role
Read-only access to all resources.Operator role
Full access to infrastructure resources, with no access to identity and access management (IAM: roles, grants, tokens), billing, or orders.Billing role
Full access to billing and orders, plus read-only access to limits. No infrastructure access. Good for finance teams.Workspace-admin role
Full management of a workspace and everything in it — including granting others access to it — but no purchasing: orders, procurements, and deployments are read-only. Granted automatically, scoped to the new workspace, to whoever creates a workspace.Member role
Read and list access across non-sensitive resources, with no access to secrets, billing, tokens, or SSH keys. This is the default role users hold when they join an organization.Creating a role
Write a role definition in TOML and pass it to the CLI.role.toml contains the following definition.
api_version must be roles/v1.
A role grants nothing on its own. Create a grant to assign it to a user or
token.
Rule syntax
A rule says what a user or token is allowed to do. It has 2 pieces.- An
actionsmap, which pairs each resource (such asinstanceorpool) with a list of verbs (such asreadorwrite). - An
effectsets what the rule grants for those actions. It takes one of these values.allow: perform the action directly, request approval for it, and approve others’ approval requests.require_approval: request approval for the action, but not perform it directly or approve others’ requests.approve_approval: approve others’ approval requests for the action, but not perform it directly or request approval.
require_approval and approve_approval for an action can perform
it directly, the same as allow.
For example, this role lets the holder read, update, delete, and list instances.
Supported resources and verbs
The supported resources areinstance, instance_template, image, node, pool, deployment,
procurement, secret, ssh_key, firewall, subnet, infiniband_partition, role, grant,
token, approval, billing, order, limits, user, workspace, and *.
The supported verbs are read, write, delete, list, create, and *.
Each rule covers every (resource, verb) pair you list. Use "*" as either the resource or the
verb for a wildcard.
These patterns cover common needs.