📑 Table of contents
🎯1. Overview of RBAC
The Role-Based Access Control (RBAC) system allows administrators to manage user rights granularly. It consists of three levels:
🔑 Roles
Admin, User, Pending, defines the basic access level
🔒 Permissions
Granular feature flags (Chat, Workspace, Features)
👥 Groups
Organizes users & manages ACLs for resources
💡 Important concept: additive permissions
The permission system is additive. Users receive the union of all rights from their roles and group memberships. There are no "deny" permissions, only "grant".
🔑2. Roles and their functions
The three system roles
| Role | Keyword | Description | Access |
|---|---|---|---|
| Admin | admin | Superuser with full access | All system resources |
| User | user | Standard user with permission checks | Only approved features |
| Pending | pending | Restricted state for new users | No access until approved |
Administrator role (Admin)
✅ Default capabilities
- Full access to all system resources
- Management of users and groups
- Global configuration settings
- Bypasses most permission checks
Standard user role
Characteristics
- Subject to the RBAC permission system
- No implicit access
- Permissions via global defaults or group membership
- Effective rights = union of all group memberships
Pending user role
Default state
- Zero access to all content
- Approval by admin required
- Gets promoted to "user" or "admin"
Managing role assignments
🎯 Role assignment
- First user: Automatically becomes admin
- New users: Receive the role defined in
DEFAULT_USER_ROLE. Can be set in the admin panel. - Changing: Admin Panel Users Edit User
Configuring the default role
Control the default role for new users on a new instance.
Options: 'pending', 'user', 'admin'
- pending (recommended): New users cannot log in until an admin has approved them
- user: New users get immediate access with default permissions
- admin: (Use with caution!) New users become admins directly
If you use login via Entra, we recommend signing users in directly as user.
🔒3. Permission system
Permissions are granular controls over specific functions and resources. They can be managed at two levels:
📋 Management levels
- Global Defaults: Admin Panel Users Groups Default Permissions
- Group Permissions: Admin Panel Users Groups Edit Group
Permission logic
✅ Additive permissions
Users receive the union of all permissions from:
- Global Default Permissions
- All group memberships
Rule: If a permission is set to TRUE anywhere, the user has access.
Permission categories
1️⃣ Workspace permissions
Models Access
Access to Models Workspace
Models Import/Export
Depends on Models Access
Knowledge Access
Management of knowledge bases
Prompts Access
Management of prompts
Tools Access
Access to Tools Workspace
Skills Access
Management of skills
2️⃣ Sharing permissions
Share Models
Share models
Public Models
Make public
Share Knowledge
Share knowledge bases
Share Prompts
Share prompts
Share Tools
Share tools
Share Skills
Share skills
3️⃣ Chat permissions
Chat Controls
System Prompt, parameters
File Upload
Upload files in chat
Delete Chat/Message
Delete conversations
Edit Message
Edit messages
Share Chat
Share conversation links
Export Chat
Export conversation history
Speech-to-Text
Use voice input
Text-to-Speech
Use voice output
Multiple Models
Multiple models at once
4️⃣ Feature permissions
API Keys
Generate tokens
Notes
Use the Notes feature
Channels
Use the Channels feature
Web Search
Enable web search
Image Generation
Generate images
Code Interpreter
Execute code
Memories
Persistent notes
Permissions for admins
⚠️ Admin permissions
Certain permissions also apply to admins:
- API Keys: Admins need explicit permission. (Better to set up a service account without admin rights for this)
- Future permissions: New security-relevant features may also require explicit permissions for admins
Best practice: create an admin group
✅ Recommended approach
Create a group "Administrators"
Add all admin users
Grant necessary permissions (e.g. API Keys)
Easy to manage for future changes
👥4. Group management
Groups are the central mechanism for managing user rights and resource access at scale.
Purposes of groups
🔑 Permission management
Assign granular permissions efficiently to multiple users
🔒 Resource access
Control who has access to Models, knowledge bases, tools
🎯 Organization
Logically organize teams and projects
Group configuration
When creating a group, you can define who can see it:
| Setting | Visibility | Best use |
|---|---|---|
| Anyone | All users see the group | Team collaboration, resource sharing |
| Members | Only group members see it | Private teams, secure collaboration |
| No one | Hidden from sharing menus | Technical permission groups |
Strategy: permission groups vs. sharing groups
✅ Recommended strategy
Separate your groups into two categories:
Permission groups (technical)
Examples: [Perms] Image Gen, Role-Power Users
- Purpose: Only for feature permissions
- Configuration: "Who can share" = No one
- Result: Clean system with no clutter in the sharing menu
- Permissions: enabled for features (Web Search, Image Gen, etc.)
Sharing groups (organizational)
Examples: Team-Marketing, Project-Alpha, Engineering
- Purpose: Only for user organization
- Configuration: "Who can share" = Members
- Permissions: ALL DISABLED
- Why? Allows easy permission revocation globally
⚠️ Why disable permissions in sharing groups?
If you enable permissions in sharing groups and later want to disable them globally, you have to update all groups manually. With separated groups, you can disable globally and everything is configured immediately.
Resource access (ACLs)
You can restrict private resources to groups or individual users:
Create or edit a model/knowledge base
Set visibility to "Private" or "Restricted"
Grant access for specific groups/users
Choose Read or Write permission
💡 Access control system
Every access is stored as an "Access Grant" with:
- Resource: ID and type (e.g. model, knowledge base)
- Principal: Group or individual user
- Permission: read or write
⭐5. Best practices for RBAC
1. Principle of least privilege (PoLP)
✅ Recommended approach
Minimal global defaults: Only what everyone should have
Granular groups: Create feature-specific groups
Selective assignment: Add users to groups deliberately
Regular audits: Review permissions regularly
2. Standardize group names
Naming conventions
- Permissions: [Perms] Feature Name or Role-Name
- Teams: Team-Name or Project-Name
- Departments: Dept-Name
Examples: [Perms] Image Gen, Team-Marketing, Dept-Engineering
3. Admin group for future-proofing
⚠️ Preparing for the future
Create an "Administrators" group and add all admin users. This makes new admin permissions easy to manage.
4. Documentation
✅ Document:
- Purpose of each group
- Which permissions in which group
- Who can be added to which groups
- Rules for access to private resources
📊Summary RBAC architecture
The three layers
| Layer | Purpose | Management | Example |
|---|---|---|---|
| Roles | Basic access level | Admin Panel Users | Admin, User, Pending |
| Permissions | Feature-specific access | Admin Panel Groups Edit | Web Search, Image Gen, API Keys |
| Groups | User organization & resource access | Admin Panel Groups | [Perms] Image Gen, Team-Marketing |
Workflow for a new user
User registers → role:
pending(or per DEFAULT_USER_ROLE)Admin approves → role:
userAdmin adds to groups → permissions get combined
User receives union of all permissions from all groups
Optional: resource-specific ACLs for Models/Knowledge
Last update: March 3, 2026
