Skip to main content

Managing Users

RAG-DocBot uses role-based access control (RBAC) with three roles.


Roles and Permissions​

RolePermissions
viewerRead-only access: chat, list documents, view index stats, view jobs, view license / branding / integrations / hardware / model info
editorAll viewer permissions, plus: upload and delete documents, rebuild the index, trigger integration syncs
adminAll editor permissions, plus: update license, manage branding, manage integrations, manage users

Default Admin Account​

A default admin account is created automatically on first boot, using the credentials set in .env:

DEFAULT_ADMIN_USER=admin
DEFAULT_ADMIN_PASSWORD=changeme
info

Change the default credentials before exposing the service to other users. See Changing Password.


User Management​

All user management endpoints require the admin role. The following operations are available:

OperationDescription
List usersView all user accounts
Create userAdd a new user and assign a role
Get userView details for a specific user
Update user passwordChange a user's password
Update user roleChange a user's role (viewer, editor, or admin)
Delete userRemove a user account

These operations are available through the API at CRUD /api/auth/users and through the Users section in the DocBot UI.