Role-Based Authorization
GridGain 9 uses a flat role-based access control (RBAC) model that grants privileges to roles and assigns roles to users to manage cluster access.
GridGain 9 uses a flat Role-Based Access Control (RBAC) model for managing access to cluster resources.
How RBAC Works
In GridGain 9, access control follows the following rules:
Users cannot receive privileges directly;
Instead, privileges are granted to roles;
Roles are then assigned to users;
Users inherit all privileges from their assigned roles.
This model ensures consistent permission management across the cluster.
Object Ownership
GridGain 9 does not implement object ownership. No user "owns" a table, schema, or any other resource.
If required, you can provide ownership-like capabilities by fine-tuning the privileges:
Create a role with management privileges for the specific object;
Add
GRANT_PRIVILEGEpermission to allow privilege delegation;Assign the role to the user.
Object Hierarchy
Object privileges have the following hierarchy:
When you grant a privilege on a parent object, it automatically applies to all child objects. For example, SELECT_FROM_TABLE privilege on schema PUBLIC allows user to execute SELECT statement on all tables in that schema. This includes both existing tables and tables that will be created in the future, as permissions are checked when the user attempts access.
Object Name Resolution
When specifying objects in GRANT statements, the following syntax rules apply:
No dot in the name means the schema, for example:
PUBLIC;One dot means the table in the schema, for example:
PUBLIC.CUSTOMERS
User Configuration
Users and their roles are configured by using CLI or SQL. You can see the full list of CLI commands in the GridGain CLI Tool section, and SQL commands in DDL reference.
In most cases, the workflow would involve creating a role, assigning it some privileges and then assigning them to a user.
CLI Example
The example below shows how you can configure role-based access
Create a new user:
Create a new role on the cluster:
Grant a new privilege to the role. In this case, we will allow users with this role to create tables, but you can see the full list of roles in the User Permissions and Roles section.
The role now has the required permission, you can assign it to the user:
The myUser user will have the permissions to use the CREATE TABLE SQL statement.
SQL Example
This example demonstrates setting up access control for a typical organization with different departments and access requirements.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

