---
title: "Authorization: Security Clearance and Permissions"
description: "Control access to RavenDB databases and clusters by assigning security clearances and per-database access levels to client certificates."
url: "https://docs.ravendb.net/7.2/server/security/authorization/security-clearance-and-permissions"
version: "7.2"
---

# Authorization: Security Clearance and Permissions

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Authorization: Security Clearance and Permissions

> **Note**
>
> - X.509 certificates are used for authentication, validating that users are who they say they are.  
>   Once a connection is authenticated, RavenDB uses the certificate for authorization as well.
>
> - Each certificate is associated with a security clearance and access permissions per database.
>
> - It is the administrator's responsibility to generate client certificates and assign permissions.  
>   Read more on the [Certificate Management](https://docs.ravendb.net/7.2/server/security/authentication/certificate-management.md) page.
>
> - A client certificate's security clearance can be one of the following: **Cluster Admin**, **Operator**, or **User**.
>
> - In this article:
>   - [Cluster Admin](#cluster-admin)
>   - [Operator](#operator)
>   - [User](#user)
>     - [Admin](#admin)
>     - [Read/Write](#readwrite)
>     - [Read Only](#read-only)

## Cluster Admin {#cluster-admin}

`Cluster Admin` is the highest security clearance, with no restrictions.  
A `Cluster Admin` certificate has admin permissions to all databases, and can also modify the
cluster itself.

The following operations are allowed **only** for `Cluster Admin` certificates:

- All cluster operations
- Manage `Cluster Admin` certificates
- Replace and renew server certificates
- Use the Admin JS Console
- Activate or update the license
- Get SNMP used OIDs

## Operator {#operator}

A client certificate with an `Operator` security clearance has admin access to all databases but
cannot modify the cluster. For example, it cannot add, remove, promote, or demote cluster nodes.  
This clearance is useful in a hosted solution such as RavenDB Cloud.  
If you are running on your own machines, you will typically use `Cluster Admin` or `User` instead.

The following operations are allowed for **both** `Operator` and `Cluster Admin` certificates, but
not for `User` certificates:

- Operations on databases (put, delete, enable, disable)
- Manage `Operator` and `User` certificates
- Enable and disable an ongoing task
- Define External Replication
- Create and delete RavenDB ETL and SQL ETL
- Migrate databases
- View cluster observer logs
- View admin logs
- Gather local and cluster debug info (process, memory, cpu, threads)
- Use smuggler
- Use the traffic watch
- Put cluster-wide client configuration (Max number of requests per session, Read balance behavior)
- Get the database record
- Manage database groups in the cluster
- Restore databases from backup
- Perform database and index compaction
- Get server metrics (request/sec, indexed/sec, batch size, etc.)
- Get remote server build info

## User {#user}

A client certificate with a `User` security clearance cannot perform any admin operations at the
cluster level.  
Unlike the other clearance levels, a `User` certificate can be granted a different access level for
each database.  
These access levels are, from highest to lowest:

- **Admin**
- **Read/Write**
- **Read Only**

If no access level is defined for a particular database, the certificate does not grant access to
that database at all.

> **Info**
>
> When a database is deleted, RavenDB removes its name from the permissions of every client certificate that was granted access to it.  
> If you later re-create a database with the same name, [reassign the relevant permissions](https://docs.ravendb.net/7.2/server/security/authentication/certificate-management.md#edit-certificate)
> to each certificate that needs access to it.

### `Admin`

The following operations are permitted at the `Admin` access level but not for `Read/Write` or
`Read Only`:

- Operations on indexes (put, delete, start, stop, enable and disable)
- Solve replication conflicts
- Configure revisions and delete revision documents
- Define expiration
- Create backups and define periodic backups
- Operations on connection strings (put, get, delete)
- Put client configuration for the database (Max number of requests per session, Read balance behavior)
- Get transaction info
- Perform SQL migration

### `Read/Write`

A `User` certificate with a `Read/Write` access level can perform all operations **except** those
listed above in the `Admin` and `Operator` sections.

- [JavaScript static indexes](https://docs.ravendb.net/7.2/indexes/javascript-indexes.md) are permitted by default for
  User certificates with Read/Write access.  
  To configure a server or database so that only clients with Admin access can deploy JavaScript
  static indexes, set [Indexing.Static.RequireAdminToDeployJavaScriptIndexes](https://docs.ravendb.net/7.2/server/configuration/indexing-configuration.md#indexingstaticrequireadmintodeployjavascriptindexes)
  to `true`.

- **Data subscriptions access**  
  A `User` certificate with a `Read/Write` access level can create, edit, delete, and enable or
  disable [data subscriptions](https://docs.ravendb.net/7.2/client-api/data-subscriptions/what-are-data-subscriptions.md).  
  Subscriptions are an exception among ongoing tasks: managing other ongoing tasks requires a higher
  access level, while subscriptions can be managed with `Read/Write` access.

### `Read Only`

The `Read Only` access level **allows** clients to:

- Read data from a database, but not write or modify data.
- Consume data subscriptions as subscription workers.
- Query the databases configured in the client certificate.
  > **Note**
  >
  > If no existing index satisfies this query, an [auto-index](https://docs.ravendb.net/7.2/indexes/creating-and-deploying.md#auto-indexes) may be built.

---

> **Info:** Unauthorized actions for ReadOnly client certificates {#unauthorized-actions-for-readonly-client-certificates}
>
> The following operations are **forbidden**:
>
> - Creating documents or modifying existing documents
> - Changing any configurations or settings
> - Creating or modifying [ongoing tasks](https://docs.ravendb.net/7.2/studio/database/tasks/ongoing-tasks/general-info.md)
> - Defining [static indexes](https://docs.ravendb.net/7.2/indexes/creating-and-deploying.md#static-indexes) (the database
>   will create [auto-indexes](https://docs.ravendb.net/7.2/indexes/creating-and-deploying.md#auto-indexes) if no existing
>   index satisfies a query)

[Learn more about the Read Only access level](https://docs.ravendb.net/7.2/studio/server/certificates/read-only-access-level.md)
