> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/gridgain/gridgain-9/security/authentication-and-authorization/user-permissions-and-roles.md).

# User Permissions and Roles

Reference for GridGain 9 user privileges, listing every action and object, the protected built-in roles, and the object permission hierarchy.

{% hint style="info" %}
This feature is only available as a part of GridGain 9 Enterprise and Ultimate editions.
{% endhint %}

## User Privileges

Privileges consist of two components: an action and an object. An action refers to a type of operation that is permitted to be carried out on an object:

## List of Actions

Actions with **Has Selector** set to `yes` can be limited to a specific **object** by using a selector: the `ON` clause of `GRANT PRIVILEGES`, or the `--on` option of the CLI. The object is identified by its name, such as a schema, table, view, sequence, or deployment unit. For example, `GRANT PRIVILEGES READ_SCHEMA ON MY_SCHEMA TO analyst` limits `READ_SCHEMA` to the `MY_SCHEMA` schema.

The selector is always optional. If you omit it, the privilege applies to all objects in the cluster. For example, `GRANT PRIVILEGES CREATE_TABLE TO analyst` lets `analyst` create tables in every schema.

Actions with **Has Selector** set to `no`, such as `READ_CLUSTER_CONFIG`, are cluster-wide. Granting them with a selector fails.

Some actions also have a **self** form: users can perform them on their own jobs, user record, or tokens without being granted the action. The action descriptions below say when this applies.

Actions marked *Available since* a version are not recognized by earlier releases. On those releases, a `GRANT PRIVILEGES` statement that names such an action fails as a whole.

### Cluster Configuration

| Name                    | Has Selector | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| READ\_CLUSTER\_CONFIG   | no           | Allows the user to access information about cluster configuration.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| WRITE\_CLUSTER\_CONFIG  | no           | Allows the user to change cluster configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| WRITE\_SECURITY\_CONFIG | no           | Allows the user to change the `ignite.security` part of the cluster configuration, which holds the authentication and authorization settings. Required in addition to `WRITE_CLUSTER_CONFIG`: both privileges must be granted to change these settings. This also covers an update that replaces a parent node, such as `ignite = null`, and so wipes the security settings without naming them. Even with both privileges, user cannot modify the `system` role. *Available since 9.1.26.* |
| READ\_NODE\_CONFIG      | no           | Allows the user to access information about individual node configuration.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| WRITE\_NODE\_CONFIG     | no           | Allows the user to change node configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### Cluster Management

| Name            | Has Selector | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| RENAME\_CLUSTER | no           | Allows the user to rename an initialized cluster. *Available since 9.1.26.*                                                                                                                                                                                                                                                                                                                                                                                                 |
| MANAGE\_LICENSE | no           | Allows the user to replace the cluster license with the REST API or the `license update` CLI command. A cluster configuration update that changes the `ignite.license` part of the configuration requires both `MANAGE_LICENSE` and `WRITE_CLUSTER_CONFIG`. On upgrade, the `system` role gets this action automatically. Other roles, including roles that were granted `ALL`, do not: grant it explicitly. See [The ALL Alias](#the-all-alias). *Available since 9.1.29.* |

### Code Deployment

| Name           | Has Selector | Description                                                   |
| -------------- | ------------ | ------------------------------------------------------------- |
| DEPLOY\_UNIT   | no           | Allows the user to send deployment units to the cluster.      |
| UNDEPLOY\_UNIT | no           | Allows the user to remove deployments units from the cluster. |
| READ\_UNIT     | no           | Allows the user to access information about deployment units. |

### Distributed Computing

| Name                  | Has Selector | Description                                                                                                                                                 |
| --------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GET\_JOB\_STATE       | no           | Allows the user to access information about all jobs, and their results if any. Without this action, users can still access the jobs they started.          |
| EXEC\_JOB             | yes          | Allows the user to execute a distributed computing job. The selector is a deployment unit.                                                                  |
| KILL\_JOB             | no           | Allows the user to stop any distributed computing job. Without this action, users can still stop the jobs they started.                                     |
| CHANGE\_JOB\_PRIORITY | no           | Allows the user to change the priority of any distributed computing job. Without this action, users can still change the priority of the jobs they started. |

### Metrics

| Name             | Has Selector | Description                                                                                              |
| ---------------- | ------------ | -------------------------------------------------------------------------------------------------------- |
| ENABLE\_METRICS  | no           | Allows the user to enable metrics on the cluster.                                                        |
| DISABLE\_METRICS | no           | Allows the user to disable metrics on the cluster.                                                       |
| LIST\_METRICS    | no           | Allows the user to list the metric sources available on the cluster and see whether each one is enabled. |
| READ\_METRICS    | no           | Allows the user to read metric values.                                                                   |

### Access Control

| Name              | Has Selector | Description                                                                                                                                                                                                                         |
| ----------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CREATE\_USER      | no           | Allows the user to create more users.                                                                                                                                                                                               |
| EDIT\_USER        | no           | Allows the user to edit the configuration of any user. Without this action, users can still edit their own user record.                                                                                                             |
| READ\_USER        | no           | Allows the user to access information about any user. Without this action, users can still read their own user record.                                                                                                              |
| DROP\_USER        | no           | Allows the user to delete users.                                                                                                                                                                                                    |
| CREATE\_ROLE      | no           | Allows the user to create roles.                                                                                                                                                                                                    |
| READ\_ROLE        | no           | Allows the user to access information about user roles.                                                                                                                                                                             |
| DROP\_ROLE        | no           | Allows the user to delete roles. Does not apply to [Protected Built-In Roles](#protected-built-in-roles).                                                                                                                           |
| GRANT\_ROLE       | no           | Allows the user to grant roles to users. Does not apply to [Protected Built-In Roles](#protected-built-in-roles).                                                                                                                   |
| REVOKE\_ROLE      | no           | Allows the user to revoke roles from users. Does not apply to [Protected Built-In Roles](#protected-built-in-roles).                                                                                                                |
| GRANT\_PRIVILEGE  | no           | Allows the user to assign privileges to roles.                                                                                                                                                                                      |
| REVOKE\_PRIVILEGE | no           | Allows user to revoke privileges from roles.                                                                                                                                                                                        |
| REVOKE\_TOKEN     | no           | Allows the user to revoke the [JWT tokens](https://mariadb.com/docs/gridgain/gridgain-9/security/authentication-and-authorization/jwt-authentication.md) of any user. Without this action, users can still revoke their own tokens. |

### CDC Management

| Name        | Has Selector | Description                                                                                                                          |
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| MANAGE\_CDC | no           | Allows the user to manage change data capture sources and sinks, as well as start and stop the CDC process. *Available since 9.1.5.* |

### Data Center Replication

| Name        | Has Selector | Description                                                                                                                                                                                                                                                            |
| ----------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| MANAGE\_DCR | no           | Allows the user to run every data center replication operation: creating, starting, stopping, flushing, and deleting replications, and also listing them and viewing their status. There is no separate read-only privilege for replication. *Available since 9.1.26.* |

### Data Import and Export

| Name             | Has Selector | Description                                                                                                                                                                                                                        |
| ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| COPY\_FROM\_FILE | no           | Allows the user to name a server-side filesystem path or object-store URI as the source of a `COPY` statement. Reading from a table instead requires `SELECT_FROM_TABLE` on that table. *Available since 9.1.27.*                  |
| COPY\_TO\_FILE   | no           | Allows the user to name a server-side filesystem path or object-store URI as the target of a `COPY` statement. Writing to a table instead requires `INSERT_INTO_TABLE` and `UPDATE_TABLE` on that table. *Available since 9.1.27.* |

Both privileges apply to the cluster and take no selector: they permit file access as such, not access to a named location. Restrict which locations a user can reach with the `ignite.importExport` [node configuration](https://mariadb.com/docs/gridgain/gridgain-9/reference/configuration/node-configuration-parameters.md), which must also enable file access before either privilege has any effect.

### Distribution Zone

| Name                       | Has Selector | Description                                       |
| -------------------------- | ------------ | ------------------------------------------------- |
| CREATE\_DISTRIBUTION\_ZONE | no           | Allows the user to create new distribution zones. |
| ALTER\_DISTRIBUTION\_ZONE  | no           | Allows the user to alter distribution zones.      |
| DROP\_DISTRIBUTION\_ZONE   | no           | Allows the user to delete distribution zones.     |

### Disaster Recovery

| Name                       | Has Selector | Description                                                                                                                                                                                                                |
| -------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| RESET\_DISTRIBUTION\_STATE | no           | Allows the user to reset the distribution state of distribution zones during [data recovery](https://mariadb.com/docs/gridgain/gridgain-9/gridgain9-management/backup-and-replication/disaster-recovery/data-recovery.md). |
| RESET\_PARTITIONS          | no           | Allows the user to reset partitions of a distribution zone during [data recovery](https://mariadb.com/docs/gridgain/gridgain-9/gridgain9-management/backup-and-replication/disaster-recovery/data-recovery.md).            |
| RESTART\_PARTITIONS        | no           | Allows the user to restart partitions of a distribution zone during [data recovery](https://mariadb.com/docs/gridgain/gridgain-9/gridgain9-management/backup-and-replication/disaster-recovery/data-recovery.md).          |

### Rolling Upgrade

| Name             | Has Selector | Description                                 |
| ---------------- | ------------ | ------------------------------------------- |
| ROLLING\_UPGRADE | no           | Allows the user to manage rolling upgrades. |

### Schema

| Name           | Has Selector | Description                                               |
| -------------- | ------------ | --------------------------------------------------------- |
| CREATE\_SCHEMA | yes          | Allows the user to use the `CREATE SCHEMA` SQL statement. |
| DROP\_SCHEMA   | yes          | Allows the user to use the `DROP SCHEMA` SQL statement.   |
| READ\_SCHEMA   | yes          | Allows the user to access schema information.             |

### Sequence Configuration

| Name             | Has Selector | Description                              |
| ---------------- | ------------ | ---------------------------------------- |
| CREATE\_SEQUENCE | yes          | Allows the user to create new sequences. |
| ALTER\_SEQUENCE  | yes          | Allows the user to change sequences.     |
| USE\_SEQUENCE    | yes          | Allows the user to use sequences.        |
| DROP\_SEQUENCE   | yes          | Allows the user to drop sequences.       |

### Table

| Name                | Has Selector | Description                                                                        |
| ------------------- | ------------ | ---------------------------------------------------------------------------------- |
| CREATE\_TABLE       | yes          | Allows the user to use the `CREATE TABLE` SQL statement.                           |
| SELECT\_FROM\_TABLE | yes          | Allows the user to use the `SELECT` SQL statement.                                 |
| ALTER\_TABLE        | yes          | Allows the user to use the `ALTER TABLE` SQL statement.                            |
| DROP\_TABLE         | yes          | Allows the user to use the `DROP TABLE` SQL statement.                             |
| INSERT\_INTO\_TABLE | yes          | Allows the user to use the `INSERT` SQL statement.                                 |
| DELETE\_FROM\_TABLE | yes          | Allows the user to use the `DELETE` SQL statement.                                 |
| UPDATE\_TABLE       | yes          | Allows the user to use the `UPDATE` SQL statement.                                 |
| CREATE\_INDEX       | yes          | Allows the user to use the `CREATE INDEX` SQL statement.                           |
| DROP\_INDEX         | yes          | Allows the user to use the `DROP INDEX` SQL statement.                             |
| USE\_INDEX          | yes          | Reserved. This action can be granted, but it has no effect.                        |
| MANAGE\_RLS         | yes          | Allows the user to manage row-level security on a table. *Available since 9.1.25.* |

### View

The view actions are reserved. They can be granted, but they have no effect.

| Name               | Has Selector | Description                              |
| ------------------ | ------------ | ---------------------------------------- |
| CREATE\_VIEW       | yes          | Allows the user to create a view.        |
| SELECT\_FROM\_VIEW | yes          | Allows the user to select from the view. |
| ALTER\_VIEW        | yes          | Allows the user to change view.          |
| DROP\_VIEW         | yes          | Allows the user to delete the view.      |

### Snapshots

| Name              | Has Selector | Description                                     |
| ----------------- | ------------ | ----------------------------------------------- |
| CREATE\_SNAPSHOT  | no           | Allows the user to create a snapshot.           |
| RESTORE\_SNAPSHOT | no           | Allows the user to restore data from snapshot.  |
| DELETE\_SNAPSHOT  | no           | Allows the user to delete the snapshot.         |
| CHECK\_SNAPSHOT   | no           | Allows the user to access snapshot information. |

### Point-in-Time Recovery

| Name          | Has Selector | Description                                                   |
| ------------- | ------------ | ------------------------------------------------------------- |
| RESTORE\_PITR | no           | Allows the user to restore data to a specific point in time.  |
| CHECK\_PITR   | no           | Allows the user to access point-in-time recovery information. |

### Transaction Management

| Name                    | Has Selector | Description                                            |
| ----------------------- | ------------ | ------------------------------------------------------ |
| GET\_TRANSACTION\_STATE | no           | Allows the user to get status of running transactions. |
| KILL\_TRANSACTION       | no           | Allows the user to stop running transactions.          |

### Query Management

| Name                   | Has Selector | Description                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| EXECUTE\_SQL           | no           | Allows the user to execute SQL statements over the [REST API](https://mariadb.com/docs/gridgain/gridgain-9/gridgain9-development/accessing-data/rest-api.md#running-sql) (`/management/v1/sql`). The user also needs the object privileges that each statement requires, such as `SELECT_FROM_TABLE`. SQL over JDBC, ODBC, and the client APIs is controlled by object privileges only and does not require this action. *Available since 9.1.27.* |
| GET\_SQL\_QUERY\_STATE | no           | Allows the user to get status of running queries.                                                                                                                                                                                                                                                                                                                                                                                                  |
| KILL\_QUERY            | no           | Allows the user to stop running SQL queries.                                                                                                                                                                                                                                                                                                                                                                                                       |

## The ALL Alias

`ALL` grants every action at once, for example `GRANT PRIVILEGES ALL TO admin_role`. It is accepted by SQL, the REST API, and the CLI.

* `ALL` is expanded into the individual actions that exist **when the grant runs**. Actions that a later upgrade adds are not granted to the role: grant them explicitly after the upgrade.
* `ALL ON <schema>` grants only the actions that accept a schema selector: the schema, table, view, and sequence actions.

To list every action that the running version supports, use the `GET /management/v1/rbac/pg/system` REST endpoint.

## Protected Built-In Roles

GridGain protects two built-in roles: the `system` super role, which cluster initialization seeds with every action, and the internal `gridgain-system-bypass` role.

The operations below are refused whatever letter case you use, over both SQL and the REST API:

| Operation          | `system`                                                     | `gridgain-system-bypass` |
| ------------------ | ------------------------------------------------------------ | ------------------------ |
| Assign to a user   | Refused                                                      | Refused                  |
| Revoke from a user | Refused                                                      | Refused                  |
| Drop               | Refused                                                      | Refused                  |
| Create             | Not applicable: the role is seeded at cluster initialization | Refused                  |

The privilege check runs before these restrictions, so holding `GRANT_ROLE`, `REVOKE_ROLE`, or `DROP_ROLE` does not permit the operation. Changing the privileges of the `system` role is also refused, as described for the `WRITE_SECURITY_CONFIG` action in [Cluster Configuration](#cluster-configuration).

A refused assignment or revocation is recorded as a [`USER_OPERATION_REFUSED`](https://mariadb.com/docs/gridgain/gridgain-9/gridgain9-development/messaging-and-events/events/available-events.md) event.

## Object Permission Hierarchy

Objects in GridGain 9 are organized in hierarchy:

![Permission hierarchy in GridGain 9](https://709350093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoHbGEk22iR73P3x6DryR%2Fuploads%2Fgit-blob-1feb0b174a5632bf388d565ffffb579c8a55b330%2Fgg9-administrators-guide-rbac.png?alt=media)

Actions allowed on the object are also allowed on its children. For example, if you have a `PUBLIC` schema and allow the `SELECT_FROM_TABLE` action on it, the user with the role will be able to perform the `SELECT` SQL action on all tables in the `PUBLIC` schema.

### Schema-level Grants

Any action with **Has Selector** set to `yes`, except `EXEC_JOB`, can be granted on a **schema**. The grant applies to **all existing** tables, views, and sequences in that schema and to those **created in the future**. Privileges are evaluated **at access time**.

For example, the following statement applies to all current and future tables in schema `STATICDATA`:

```sql
GRANT PRIVILEGES SELECT_FROM_TABLE ON STATICDATA TO analyst;
```

{% hint style="warning" %}
Privileges granted on a schema whose name requires quoting, such as a mixed-case name or a name with special characters like `-`, are not applied correctly. Use upper-case schema names made of letters, digits, and underscores for schemas that you secure with RBAC.
{% endhint %}

{% hint style="info" %}
A selector **without a dot** (e.g., `STATICDATA`) targets a **schema**, and the grant covers both existing and future objects in that schema. For more details check the `role privilege grant` [command syntax](https://mariadb.com/docs/gridgain/gridgain-9/reference/cli-tool.md).
{% endhint %}

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
