UltipaDocs
Products
Solutions
Resources
Company
Start Free Trial
UltipaDocs
Start Free Trial
  • Overview
  • User Management
  • Role Management
  • Grant & Revoke Permissions
  • Best Practices
  1. Docs
  2. /
  3. Access Control

Role Management

Overview

Create roles to group permissions, then assign roles to users. Roles make it easy to manage access for groups of users with similar responsibilities.

Built-in System Roles:

RoleDescriptionInherits
adminFull superuser access to all operations—
readerRead-only access to all data—
writerRead and write access to all datareader
data_adminFull data access (read, insert, update, delete, merge)writer
analystRead data + execute procedures and algorithmsreader
schema_adminSchema administration (all DDL)—
backup_adminBackup and restore operations—
procedure_adminStored procedure lifecycle management—
ops_adminOperations (task/query management, statistics)—
security_adminUser, role, and grant management—

System roles cannot be deleted.

Showing Roles

List all roles:

GQL
SHOW ROLES

Show a specific role:

GQL
SHOW ROLE admin

Result columns:

ColumnDescription
nameRole name
descriptionRole description (empty for user-created roles)
is_systemtrue for built-in roles that cannot be deleted, false otherwise
permissionsOperations currently granted to the role
created_atTimestamp when the role was created

Creating Roles

Role names are unquoted identifiers — they must start with a letter or underscore, and may contain letters, digits, and underscores after the first character.

GQL
CREATE ROLE data_reader

Altering Roles

Rename a role:

GQL
ALTER ROLE data_reader RENAME TO analytics_reader

Dropping Roles

GQL
DROP ROLE data_reader

Use IF EXISTS to avoid errors if the role does not exist:

GQL
DROP ROLE IF EXISTS data_reader