Full permission reference
The complete set of permissions, taken from authorization/model.fga. This page is
the engineering reference — for a plain-language version, see
What can my role do?.
The roles
| Name in the model | Shown in the app | Notes |
|---|---|---|
admin | Admin | Full control everywhere |
platform_admin | Platform Admin | Content and configuration, not people |
user_admin | User Admin | People, not content |
contributor | Contributor | Can author assistants and workflows |
user | User | Default, consume-only |
application | Application | System principal for service-to-service calls. Not assignable to people. |
members in the rules below means any of the five human roles.
Roles are granted on the organization, to a user or a group. A role held by a group applies to every member of that group.
Organization permissions
These arrive in your session as a single list and drive page access and create buttons.
| Permission | Who has it | Enforced in the web app at |
|---|---|---|
can_view_assistants_page | members | config/protectedRoutes.ts, sidebar menu |
can_view_workflows_page | members | config/protectedRoutes.ts, sidebar menu |
can_view_document_sources_page | members | config/protectedRoutes.ts, sidebar menu |
can_view_documents_page | members | not used |
can_view_dashboard_page | admin, platform_admin | Sources dashboard, Dashboard tabs |
can_view_llm_settings_page | admin, platform_admin | config/protectedRoutes.ts, sidebar menu |
can_view_users_page | admin, platform_admin, user_admin | config/protectedRoutes.ts, sidebar menu |
can_create_assistant | admin, platform_admin, contributor | Assistants list, sidebar action |
can_create_workflow | admin, platform_admin, contributor | Workflows list, sidebar action |
can_create_document_source | members | Sources list, sidebar action |
can_create_chat_settings | admin, platform_admin | Chat settings list |
can_create_ingestion_settings | admin, platform_admin | Ingestion settings list |
can_create_skill | admin, platform_admin | Skills list |
can_create_user | admin, user_admin | not used |
can_create_group | admin, user_admin | Groups list |
can_read_all_document_source | admin, platform_admin | not used |
can_read_all_chat | admin | Chat right menu |
can_read_all_workflow_run | admin | Runs page, runs submenu, workflow input drawer |
can_read_all_group | admin, platform_admin, user_admin | config/protectedRoutes.ts (/users/groups) |
can_view_documents_page, can_create_user and can_read_all_document_source are
defined in the model and mirrored in the web app's PERMISSIONS enum, but nothing in
the UI reads them. The backend still enforces can_create_user on the API, so user
creation is safe — but the button that triggers it is not conditionally hidden. Worth
knowing if you are auditing the UI against the model.
Identity
User
| Permission | Rule |
|---|---|
can_read | any organization member |
can_update | admin, user_admin |
can_delete | admin, user_admin |
Group
| Permission | Rule |
|---|---|
can_read | any organization member |
can_update | admin, user_admin |
can_delete | admin, user_admin |
Relations: owner, member.
can_updateThere is no separate permission for managing members or assigning roles. Adding a
member, removing a member, and granting a group an organization role are all governed
by can_update on the group — the same permission as renaming it.
Backend enforcement lives in GroupDefaultService and UserDefaultService
(kotlin/identity), which call checkCanRead, checkCanUpdate, checkCanDelete and
checkCanCreate. The REST routes themselves hold no checks.
Content
Assistant
Relations: owner, editor, viewer, public_access.
| Permission | Rule |
|---|---|
can_read | owner, editor, viewer, anyone if public, platform_admin, admin |
can_update | owner, editor, platform_admin, admin |
can_delete | owner, platform_admin, admin |
can_share | owner, platform_admin, admin |
can_clone | owner; or editor / viewer / public and contributor; platform_admin; admin |
Workflow
Relations: owner, editor, executor, viewer, public_access, assistant.
| Permission | Rule |
|---|---|
can_read | owner, editor, executor, viewer, anyone if public, anyone who can read its assistant, platform_admin, admin |
can_execute | owner, editor, executor, anyone if public, platform_admin, admin |
can_update | owner, editor, platform_admin, admin |
can_delete | owner, platform_admin, admin |
can_share | owner, platform_admin, admin |
can_clone | owner; or editor / executor / viewer / public and contributor; platform_admin; admin |
Document source
Relations: owner, editor, viewer, public_access.
| Permission | Rule |
|---|---|
can_read | owner, editor, viewer, anyone if public, platform_admin, admin |
can_update | owner, editor, platform_admin, admin |
can_upload_documents | same as can_update |
can_ingest_documents | same as can_upload_documents |
can_delete | owner, platform_admin, admin |
can_share | owner, platform_admin, admin |
Document
| Permission | Rule |
|---|---|
can_read | anyone who can read the document source |
can_update | the owner if they can read the source; or anyone who can update the source |
can_delete | the owner if they can read the source; or anyone who can update the source |
Creating a document requires can_upload_documents on the source; processing one
requires can_ingest_documents.
Chat
| Permission | Rule |
|---|---|
can_read | the owner, and they must be able to read the assistant; or admin |
can_update | same |
can_delete | same |
Starting a chat requires can_read on the assistant.
Runs and schedules
Workflow run
| Permission | Rule |
|---|---|
can_read | the owner, and they must be able to read the workflow; or admin |
can_update | same |
can_delete | same |
Creating a run requires can_execute on the workflow.
Workflow schedule
| Permission | Rule |
|---|---|
can_read | the owner if they can read the workflow; or the workflow's owner; platform_admin; admin |
can_update | same |
can_delete | same |
Creating a schedule, and running it once on demand, both require can_execute on the
workflow.
Rating
| Permission | Rule |
|---|---|
can_read | the owner if they can read the chat or run; platform_admin; admin |
can_update | the owner if they can read the chat or run; admin |
can_delete | the owner if they can read the chat or run; admin |
Creating a rating requires can_read on the chat or the workflow run.
Configuration
ChatSettings, IngestionSettings and Skill share one shape:
| Permission | Rule |
|---|---|
can_read | any organization member |
can_update | admin, platform_admin |
can_delete | admin, platform_admin |
Everyone can read the configuration; only Admins and Platform Admins can change it.
The permission API
The web app fetches per-item permissions from the chat service.
| Endpoint | Returns |
|---|---|
GET /api/permission/{EntityType}:{entityId} | Your permissions on that item, plus whether it is public |
GET /api/permission/users/{EntityType}:{entityId} | Users holding a given level |
GET /api/permission/groups/{EntityType}:{entityId} | Groups holding a given level |
POST /api/permission | Grant or revoke a level |
POST /api/permission/public | Make public or private |
Valid EntityType values: User, Organization, Assistant, Chat, Workflow,
DocumentSource, Document, ChatSettings, IngestionSettings, Rating, Skill,
WorkflowRun, WorkflowSchedule, Group.
In the web app
| Tool | Use it for |
|---|---|
usePermission(entityType, entityId, permission) | A reactive check in a component |
<PermissionGate> | Wrap markup that should disappear without the permission |
usePermissions() | Imperative checks outside render |
confirmPermission on BotModal | Hide a modal's confirm button |
permission on a dropdown or modal action | Hide one action in a menu |
PROTECTED_ROUTES | Redirect from a whole page, server-side |
Per-item results are cached for 10 minutes.