> ## Documentation Index
> Fetch the complete documentation index at: https://cockroachlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CockroachDB Cloud Access Management (Authorization) Overview

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

This page covers the essential concepts related to access management (authorization) in CockroachDB Cloud. Procedures for managing access are covered in <InternalLink path="managing-access">Managing Users, Roles, and Service Accounts in CockroachDB Cloud</InternalLink>.

## Overview of the CockroachDB Cloud authorization model

**The CockroachDB Cloud console**, found at `https://cockroachlabs.cloud/`, is a 'single pane of glass' for managing users, billing, and all functions for administering clusters in CockroachDB Cloud. When accessing the console, users must sign in to a CockroachDB Cloud **organization** (or create a new one).

You can also execute many administrative commands using the `ccloud` command-line utility and the CockroachDB Cloud API:

* `ccloud` allows human users to authenticate their terminal via a browser token from the CockroachDB Cloud console.
* The CockroachDB Cloud API allows [service accounts](#service-accounts) to authenticate via API keys, which are issued through the console.
* You can <InternalLink path="provision-a-cluster-with-terraform">use Terraform to provision users and other aspects of your CockroachDB Cloud clusters</InternalLink>. However, note that currently Terraform can only be used to provision admin SQL users, as this is a current limitation of the API, on which Terraform depends.

In CockroachDB Cloud, an organization corresponds to an authorization hierarchy linked to a billing account. Within each CockroachDB Cloud organization, the unit of database functionality is the *CockroachDB cluster*, which corresponds to a networked set of CockroachDB cluster nodes. SQL operations and data storage are distributed over a cluster. Every cluster belongs to an organization.

CockroachDB Cloud has a hierarchical authorization model, where roles can be assigned at different scopes:

1. Organization: A CockroachDB Cloud organization assigns permissions based on [roles](#organization-user-roles) assigned to a Cloud Console user account, which allow these accounts to perform administrative tasks relating to the management of clusters, Console user management, SQL user management, and billing.
2. Folder: Cloud Console [roles](#organization-user-roles) can be assigned to a folder containing a group of clusters. Role inheritance is transitive; a role applied with the organization or folder scope is inherited by descendent resources.

<Tip>
  Organizing clusters using folders is available in <InternalLink version="releases" path="cockroachdb-feature-availability#feature-availability-phases">Preview</InternalLink>. To learn more, refer to <InternalLink path="folders">Organize Clusters Using Folders</InternalLink>.
</Tip>

3. Cluster: Each CockroachDB cluster defines its own set of <InternalLink version="stable" path="security-reference/authorization#create-and-manage-users">SQL users</InternalLink> and SQL user <InternalLink version="stable" path="security-reference/authorization#roles">roles</InternalLink> which manage permission to execute SQL statements on the cluster.

The levels within the hierarchy intersect, because administering SQL-level users on specific clusters within an organization is an organization-level function.

<Note>
  SQL users are granted a distinct set of roles and privileges that are specific to data management on the cluster, independent of the Cloud user roles and permissions described on this page. For the main pages covering users and roles at the SQL level within a specific database cluster, refer to the main <InternalLink version="stable" path="security-reference/authorization">Authorization in CockroachDB documentation</InternalLink>
</Note>

. The <InternalLink version="stable" path="grant">GRANT</InternalLink> SQL statement cannot be used to assign Cloud roles and permissions.

## Organization user roles

When a user or service account is first added to an organization, they are assigned the default Console role, **Organization Member**, which adds no permissions and only indicates membership in the organization. Users with the Organization or Cluster Admin role may <InternalLink path="managing-access">edit the roles assigned to organization users</InternalLink> in the CockroachDB Cloud Console's [**Access Management** page](https://cockroachlabs.cloud/access), or using the CockroachDB Cloud API or Terraform Provider.

<Note>
  The user who creates a new organization is assigned the following <InternalLink version="cockroachcloud" path="authorization#organization-user-roles">roles</InternalLink> at the organization scope:

  * <InternalLink version="cockroachcloud" path="authorization#organization-admin">Organization Admin</InternalLink>
  * <InternalLink version="cockroachcloud" path="authorization#billing-coordinator">Billing Coordinator</InternalLink>
  * <InternalLink version="cockroachcloud" path="authorization#cluster-admin">Cluster Admin</InternalLink>
  * <InternalLink version="cockroachcloud" path="authorization#folder-admin">Folder Administrator</InternalLink>

  Any of these roles may subsequently be removed by a user with both the Organization Admin role and the Cluster Admin role at the organization scope. This is to ensure that at least one user has both of these roles.
</Note>

To learn more, refer to <InternalLink path="managing-access">Manage organization users</InternalLink>.

The following table describes the high level permissions given by each CockroachDB Cloud user role. Permissions are additive, so a user with multiple roles is given all permissions in each area across all assigned roles.

|                                                                                                                                      | <InternalLink version="cockroachcloud" path="authorization#organization-member">Org. Member</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#organization-admin">Org. Admin</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#billing-coordinator">Billing Coord.</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#billing-viewer">Billing Viewer</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#cluster-creator">Cluster Creator</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#cluster-operator">Cluster Operator</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#cluster-admin">Cluster Admin</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#cluster-developer">Cluster Developer</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#cluster-monitor">Cluster Monitor</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#metrics-viewer">Metrics Viewer</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#folder-admin">Folder Admin</InternalLink> | <InternalLink version="cockroachcloud" path="authorization#folder-mover">Folder Mover</InternalLink> |
| ------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **User/Access Management**                                                                                                           |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| Assign and revoke roles                                                                                                              | —                                                                                                          | ✓                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Assign Cloud user and service account roles                                                                                          | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage SQL users                                                                                                                     | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage Cloud users and service accounts                                                                                              | —                                                                                                          | ✓                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Apply roles at the <InternalLink path="folders">folder</InternalLink> scope                                                          | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | ✓                                                                                                    | —                                                                                                    |
| **Cluster & Infrastructure**                                                                                                         |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| Create cluster or <InternalLink version="cockroachcloud" path="private-clusters">private cluster</InternalLink>                      | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | ✓                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Create / edit / delete cluster                                                                                                       | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Edit / delete clusters created by this user                                                                                          | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | ✓                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Create / delete / manage <InternalLink path="folders">folders</InternalLink>                                                         | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | ✓                                                                                                    | —                                                                                                    |
| Move cluster between <InternalLink path="folders">folders</InternalLink>                                                             | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | ✓                                                                                                    |
| Scale nodes                                                                                                                          | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Upgrade CockroachDB                                                                                                                  | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Configure <InternalLink path="advanced-cluster-management#set-a-maintenance-window">maintenance windows</InternalLink>               | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Use the <InternalLink path="provision-a-cluster-with-terraform">Cloud Terraform provider</InternalLink>                              | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | ✓                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| **Monitoring & Observability**                                                                                                       |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| View cluster details                                                                                                                 | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | ✓                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink version="cockroachcloud" path="cloud-org-audit-logs">audit logs</InternalLink>                                    | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink path="insights-page">insights</InternalLink>                                                                      | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | ✓                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink path="jobs-page">jobs</InternalLink>                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | ✓                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink path="statements-page">sql activity</InternalLink>                                                                | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | ✓                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink path="metrics">metrics</InternalLink>                                                                             | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | ✓                                                                                                        | —                                                                                                    | —                                                                                                    |
| Send <InternalLink path="alerts-page#send-a-test-alert">test alerts</InternalLink>                                                   | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Access <InternalLink path="network-authorization#db-console">DB console</InternalLink>                                               | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | ✓                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| **Security**                                                                                                                         |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| Configure <InternalLink version="cockroachcloud" path="cloud-sso-sql">cluster SSO</InternalLink>                                     | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage <InternalLink path="egress-perimeter-controls">egress perimeter controls</InternalLink>                                       | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage <InternalLink path="network-authorization">network authorization</InternalLink>                                               | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View PCI status                                                                                                                      | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| **Database & Data**                                                                                                                  |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| Manage databases                                                                                                                     | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View / restore <InternalLink version="cockroachcloud" path="backup-and-restore-overview">backups</InternalLink>                      | —                                                                                                          | —                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | ✓                                                                                                            | ✓                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| **Billing & Licensing**                                                                                                              |                                                                                                            |                                                                                                          |                                                                                                               |                                                                                                          |                                                                                                            |                                                                                                              |                                                                                                        |                                                                                                                |                                                                                                            |                                                                                                          |                                                                                                      |                                                                                                      |
| Manage <InternalLink path="billing-management">billing</InternalLink>                                                                | —                                                                                                          | —                                                                                                        | ✓                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| View <InternalLink path="billing-management">billing</InternalLink> details                                                          | —                                                                                                          | —                                                                                                        | ✓                                                                                                             | ✓                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage <InternalLink path="alerts-page#configure-alerts">email alerts</InternalLink>                                                 | —                                                                                                          | ✓                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |
| Manage CockroachDB <InternalLink version="stable" path="licensing-faqs#obtain-a-license">Self-Hosted cluster licenses</InternalLink> | —                                                                                                          | ✓                                                                                                        | —                                                                                                             | —                                                                                                        | —                                                                                                          | —                                                                                                            | —                                                                                                      | —                                                                                                              | —                                                                                                          | —                                                                                                        | —                                                                                                    | —                                                                                                    |

Some roles can be assigned to users at specific levels of scope to provide more granular permission control:

| **Scope level** | **Description**                                                                                                                                                                                                            | **Applicable roles**                                                                                                                                                                                            |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Organization`  | Applies to the entire CockroachDB Cloud organization, including all clusters and folders                                                                                                                                   | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer`, `Billing Coordinator`, `Billing Viewer`, `Organization Admin`, `Folder Admin`, `Folder Mover` |
| `Folder`        | Applies to clusters within a specific <InternalLink path="folders">folder</InternalLink>. Only available as a selectable scope if folders have been created within the organization by a user with the `Folder Admin` role | `Cluster Operator`, `Cluster Admin`, `Cluster Creator`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer`, `Folder Admin`, `Folder Mover`                                                                |
| `Cluster`       | Applies to a specific cluster                                                                                                                                                                                              | `Cluster Operator`, `Cluster Admin`, `Cluster Developer`, `Cluster Monitor`, `Metrics Viewer`                                                                                                                   |

The following sections describe the available CockroachDB Cloud roles in more detail:

### Organization Member

The **Organization Member** role is assigned by default to all organization users when they are invited or provisioned. This role gives no additional permissions.

### Organization Admin

The **Organization Admin** role allows users to perform the following actions:

* <InternalLink path="managing-access#invite-team-members-to-an-organization">Invite users to join that organization</InternalLink>.
* <InternalLink path="managing-access#create-a-service-account">Create service accounts</InternalLink>.
* Assign and revoke Cloud roles for both <InternalLink path="managing-access">users</InternalLink> and <InternalLink path="managing-access#manage-service-accounts">service accounts</InternalLink>.

Organization Admins automatically receive <InternalLink path="alerts-page">email alerts</InternalLink> about planned cluster maintenance and when CockroachDB Cloud detects that a cluster is overloaded or experiencing issues. In addition, Organization Admins can subscribe other members to the email alerts, and configure how alerts work for the organization.

This role can be assigned only at the organization scope.

### Billing Coordinator

The **Billing Coordinator** role allows users to <InternalLink path="billing-management">manage and view billing details, invoices, and usage for that organization</InternalLink> through the CockroachDB Cloud console billing page at [`https://cockroachlabs.cloud/billing/overview`](https://cockroachlabs.cloud/billing/overview).

### Billing Viewer

The **Billing Viewer** role allows users to <InternalLink path="billing-management">view billing details, invoices, and usage for that organization</InternalLink> through the CockroachDB Cloud console billing page at [`https://cockroachlabs.cloud/billing/overview`](https://cockroachlabs.cloud/billing/overview).

### Cluster Operator

The **Cluster Operator** role allows actions that are dependent on whether it is assigned to a user or a service account.

* *Users* with this role can perform the following *console operations*:
  * View a cluster's <InternalLink version="cockroachcloud" path="overview-page">Overview page</InternalLink>, which displays its settings, attributes and statistics, including cloud provider, region topography, and available and maximum storage and request units.
  * Manage a cluster's databases from the <InternalLink path="databases-page">Databases Page</InternalLink>.
  * <InternalLink path="advanced-cluster-management#scale-your-cluster">Scale a cluster's nodes</InternalLink>.
  * View and configure a cluster's authorized networks from the <InternalLink path="network-authorization">Networking Page</InternalLink>.
  * <InternalLink path="network-authorization">Manage network authorization</InternalLink> for a cluster.
  * View backups in a cluster's <InternalLink path="managed-backups#cloud-console">Backup and Restore Page</InternalLink>.
  * <InternalLink path="managed-backups?filters=standard#restore-a-cluster">Restore a cluster from a backup</InternalLink>.
  * View a cluster's Jobs from the <InternalLink path="jobs-page">Jobs page</InternalLink>.
  * View a cluster's Metrics from the <InternalLink path="metrics#cockroachdb-cloud-console-metrics-page">Metrics page</InternalLink>.
  * View a cluster's Insights from the <InternalLink path="insights-page">Insights page</InternalLink>.
  * <InternalLink path="upgrade-cockroach-version">Upgrade</InternalLink> a cluster's major version of CockroachDB.
  * View a cluster's <InternalLink version="cockroachcloud" path="advanced-cluster-management#configure-pci-ready-features">PCI-readiness status (Advanced clusters with Security add-on only)</InternalLink>.
  * Send a test alert from the <InternalLink path="alerts-page">Alerts Page</InternalLink>.
  * Configure single sign-on (SSO) enforcement.
  * Access the <InternalLink path="network-authorization#db-console">DB Console</InternalLink>.
  * Configure a cluster's <InternalLink path="advanced-cluster-management#set-a-maintenance-window">maintenance window</InternalLink>.
  * <InternalLink path="labels">Edit a cluster's labels</InternalLink>.
* *Service accounts* with this role can perform the following *API operations*:
  * <InternalLink path="cloud-api#get-information-about-a-specific-cluster">Read a cluster summary</InternalLink>.
  * <InternalLink path="managing-cmek">Manage Customer-Managed Encryption Keys (CMEK) for Advanced Clusters</InternalLink>
  * <InternalLink path="export-logs">Export a cluster's logs</InternalLink>.
  * <InternalLink path="export-metrics">Export a cluster's metrics</InternalLink>.
  * <InternalLink path="network-authorization">Manage network authorization</InternalLink> for a cluster.
  * <InternalLink path="egress-perimeter-controls">View and configure a cluster's Egress Rules</InternalLink>.
  * <InternalLink path="export-metrics">Configure the export of metrics to DataDog or Amazon CloudWatch</InternalLink>.

This role can be considered a more restricted alternative to [Cluster Admin](#cluster-admin), as it gives all of the permissions of that role but does **not** allow users to:

* Manage cluster-scoped roles on organization users.
* Manage SQL users from the cloud console.
* Create or delete a cluster.

This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, the role is inherited on the folder's clusters, descendent folders, and their descendants.

### Cluster Admin

The **Cluster Admin** role allows users to perform all [Cluster Operator](#cluster-operator) actions, as well as the following:

* <InternalLink path="managing-access#create-a-sql-user">Provision SQL users for a cluster using the console</InternalLink>.
* <InternalLink path="managing-access">Create Service Accounts</InternalLink>.
* Edit cluster-scope role assignments (specifically, the Cluster Admin, Cluster Operator, and Cluster Developer roles) on <InternalLink path="managing-access">users</InternalLink>, and <InternalLink path="managing-access#edit-roles-on-a-service-account">service accounts</InternalLink>.
* <InternalLink path="cluster-management">Edit or delete a cluster</InternalLink>.
* Cluster Admins for the whole organization (rather than scoped to a single cluster) can <InternalLink path="create-your-cluster">create new clusters</InternalLink>.
* Access the <InternalLink path="network-authorization#db-console">DB Console</InternalLink>.
* Configure a cluster's <InternalLink path="advanced-cluster-management#set-a-maintenance-window">maintenance window</InternalLink>.

This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder's clusters, descendent folders, and their descendants.

### Cluster Creator

The **Cluster Creator** role allows users to create clusters in an organization. A cluster's creator is automatically assigned the [Cluster Admin](#cluster-admin) role for that cluster upon creation.

This role can be assigned at the scope of the organization or on a folder. If assigned to a folder, it is inherited on the folder's clusters, descendent folders, and their descendants.

### Cluster Developer

The **Cluster Developer** role allows users to view cluster details and access the <InternalLink path="network-authorization#db-console">DB Console</InternalLink>, allowing them to <InternalLink path="authentication#the-connection-string">export a connection string from the cluster page UI</InternalLink>, although they will still need a Cluster Admin to <InternalLink path="managing-access#manage-sql-users-on-a-cluster">provision their SQL credentials</InternalLink> for the cluster.

This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder's clusters, descendent folders, and their descendants.

### Cluster Monitor

The **Cluster Monitor** role provides read‑only visibility into SQL activity and workload health without broader administrative privileges. Users with this role can view the SQL Activity pages (<InternalLink path="sessions-page">Sessions</InternalLink>, <InternalLink path="statements-page">Statements</InternalLink>, and <InternalLink path="transactions-page">Transactions</InternalLink>), the <InternalLink path="jobs-page">Jobs page</InternalLink>, and the <InternalLink path="insights-page">Insights page</InternalLink>.

This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder's clusters, descendent folders, and their descendants.

### Metrics Viewer

The **Metrics Viewer** role grants read‑only access to observability metrics for a cluster without any administrative or data‑manipulation privileges.

* Users with this role can view a cluster's Metrics from the <InternalLink path="metrics#cockroachdb-cloud-console-metrics-page">Metrics page</InternalLink>.
* Service accounts with this role can access the <InternalLink path="export-metrics">metrics export API</InternalLink> and the <InternalLink path="export-logs#the-logexport-endpoint">log export API</InternalLink> to integrate with external observability systems.

This role can be assigned at the scope of the organization, on an individual cluster, or on a folder. If assigned to a folder, it is inherited on the folder's clusters, descendent folders, and their descendants.

<Note>
  To give a developer the ability to both connect to a cluster and monitor performance with least privilege, combine [**Cluster Developer**](#cluster-developer) with **Metrics Viewer** (and optionally [**Cluster Monitor**](#cluster-monitor)).
</Note>

### Folder Admin

The **Folder Admin** role allows users to create, rename, move, delete, and manage access to folders where they are assigned the role. Users can also <InternalLink path="labels">edit folder labels</InternalLink>. This role can be assigned at the level of the organization or on a specific folder. If assigned at the level of the organization, the role allows users to view all users and service accounts in the organization. If assigned to a specific folder, the role is inherited by descendant folders.

A user with the [Organization Admin](#organization-admin) role can assign themselves, another user, or a service account the Folder Admin role.

To create or manage clusters in a folder, a Folder Admin also needs the [Cluster Admin](#cluster-admin) or [Cluster Creator](#cluster-creator) role on that folder directly or by inheritance. To delete a cluster, the Cluster Admin role is required on the cluster directly or by inheritance.

### Folder Mover

The **Folder Mover** role allows users to rename or move descendant folders, and move clusters within the folder hierarchy where they have the role. However, a Folder Mover cannot create or delete folders or clusters and cannot assign roles. A Folder Mover can move clusters within the folder hierarchy even if they do not have a role that allows them to connect to the cluster, such as [Cluster Creator](#cluster-creator) or [Cluster Operator](#cluster-operator).

<Note>
  A cluster inside a folder cannot be renamed.
</Note>

A user with the [Organization Admin](#organization-admin) or [Folder Admin](#folder-admin) role can assign another user or a service account the Folder Mover role. Because the Folder Admin role is a superset of Folder Mover, there is no need for a Folder Admin to assign themselves the Folder Mover role.

## Service accounts

Service accounts authenticate with API keys to the CockroachDB Cloud API, rather than to the CockroachDB Cloud Console UI.

Service accounts operate under a unified authorization model with organization users, and can be assigned all of the same [roles](#organization-user-roles) as users, but note that some actions are available in the console but not the API, or vice versa (For example, in the [Cluster Operator Role](#cluster-operator)).

Refer to <InternalLink path="managing-access#manage-service-accounts">Manage Service Accounts</InternalLink>.

## Cluster roles for organization users using Cluster SSO

Cluster Single Sign-On (SSO) for CockroachDB Cloud allows authorized organization users to directly access clusters within the organization via <InternalLink path="ccloud-get-started">`ccloud`</InternalLink>, the CockroachDB Cloud command line interface.

However, because organization users and cluster SQL users are logically separate, a corresponding SQL user must be created for each SSO organization user, on each particular cluster.

This correspondence lies in the SQL user name, which must be in the format `sso_{email_name}`. Replace `(email_name}` with the portion of the user's email address before `@`. For example, the SQL username of a user with the email address `docs@cockroachlabs.com` is `sso_docs`. If the role is not set up correctly, `ccloud` prompts you to create or add it. Only an SQL admin can manage SQL users.
