Role-Based Access Control (RBAC) allows you to manage users, roles, and permissions to control access to your database.
Key Concepts:
Built-in System Roles:
| Role | Description |
|---|---|
admin | Full database access |
reader | Read-only access |
writer | Read and write access |
schema_admin | Schema management |
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: