UltipaDocs
Try Playground
  • Overview
  • User Management
  • Role Management
  • Grant & Revoke
  • Permission Levels
  • Best Practices
  1. Docs
  2. /
  3. Access Control
  4. /
  5. Overview

Role-Based Access Control

Overview

Role-Based Access Control (RBAC) allows you to manage users, roles, and permissions to control access to your database.

Key Concepts:

  • Users - Individual accounts that can connect to the database
  • Roles - Named groups of permissions that can be assigned to users
  • Permissions - Specific operations (READ, INSERT, UPDATE, DELETE) on resources

Built-in System Roles:

RoleDescription
adminFull database access
readerRead-only access
writerRead and write access
schema_adminSchema management

Quick Start

GQL
// Create a role
CREATE ROLE 'data_analyst'

// Create a user
CREATE USER 'alice' WITH PASSWORD 'secure_password_123'

// Grant permissions to role
GRANT READ ON GRAPH 'production' TO ROLE 'data_analyst'

// Assign role to user
GRANT ROLE 'data_analyst' TO USER 'alice'

See the following pages for detailed information:

  • User Management
  • Role Management
  • Grant & Revoke Permissions
  • Permission Levels