انتقل إلى المحتوى الرئيسي

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 modelShown in the appNotes
adminAdminFull control everywhere
platform_adminPlatform AdminContent and configuration, not people
user_adminUser AdminPeople, not content
contributorContributorCan author assistants and workflows
userUserDefault, consume-only
applicationApplicationSystem 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.

PermissionWho has itEnforced in the web app at
can_view_assistants_pagemembersconfig/protectedRoutes.ts, sidebar menu
can_view_workflows_pagemembersconfig/protectedRoutes.ts, sidebar menu
can_view_document_sources_pagemembersconfig/protectedRoutes.ts, sidebar menu
can_view_documents_pagemembersnot used
can_view_dashboard_pageadmin, platform_adminSources dashboard, Dashboard tabs
can_view_llm_settings_pageadmin, platform_adminconfig/protectedRoutes.ts, sidebar menu
can_view_users_pageadmin, platform_admin, user_adminconfig/protectedRoutes.ts, sidebar menu
can_create_assistantadmin, platform_admin, contributorAssistants list, sidebar action
can_create_workflowadmin, platform_admin, contributorWorkflows list, sidebar action
can_create_document_sourcemembersSources list, sidebar action
can_create_chat_settingsadmin, platform_adminChat settings list
can_create_ingestion_settingsadmin, platform_adminIngestion settings list
can_create_skilladmin, platform_adminSkills list
can_create_useradmin, user_adminnot used
can_create_groupadmin, user_adminGroups list
can_read_all_document_sourceadmin, platform_adminnot used
can_read_all_chatadminChat right menu
can_read_all_workflow_runadminRuns page, runs submenu, workflow input drawer
can_read_all_groupadmin, platform_admin, user_adminconfig/protectedRoutes.ts (/users/groups)
Three permissions the web app never checks

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​

PermissionRule
can_readany organization member
can_updateadmin, user_admin
can_deleteadmin, user_admin

Group​

PermissionRule
can_readany organization member
can_updateadmin, user_admin
can_deleteadmin, user_admin

Relations: owner, member.

Group membership and roles are both can_update

There 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.

PermissionRule
can_readowner, editor, viewer, anyone if public, platform_admin, admin
can_updateowner, editor, platform_admin, admin
can_deleteowner, platform_admin, admin
can_shareowner, platform_admin, admin
can_cloneowner; or editor / viewer / public and contributor; platform_admin; admin

Workflow​

Relations: owner, editor, executor, viewer, public_access, assistant.

PermissionRule
can_readowner, editor, executor, viewer, anyone if public, anyone who can read its assistant, platform_admin, admin
can_executeowner, editor, executor, anyone if public, platform_admin, admin
can_updateowner, editor, platform_admin, admin
can_deleteowner, platform_admin, admin
can_shareowner, platform_admin, admin
can_cloneowner; or editor / executor / viewer / public and contributor; platform_admin; admin

Document source​

Relations: owner, editor, viewer, public_access.

PermissionRule
can_readowner, editor, viewer, anyone if public, platform_admin, admin
can_updateowner, editor, platform_admin, admin
can_upload_documentssame as can_update
can_ingest_documentssame as can_upload_documents
can_deleteowner, platform_admin, admin
can_shareowner, platform_admin, admin

Document​

PermissionRule
can_readanyone who can read the document source
can_updatethe owner if they can read the source; or anyone who can update the source
can_deletethe 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​

PermissionRule
can_readthe owner, and they must be able to read the assistant; or admin
can_updatesame
can_deletesame

Starting a chat requires can_read on the assistant.


Runs and schedules​

Workflow run​

PermissionRule
can_readthe owner, and they must be able to read the workflow; or admin
can_updatesame
can_deletesame

Creating a run requires can_execute on the workflow.

Workflow schedule​

PermissionRule
can_readthe owner if they can read the workflow; or the workflow's owner; platform_admin; admin
can_updatesame
can_deletesame

Creating a schedule, and running it once on demand, both require can_execute on the workflow.

Rating​

PermissionRule
can_readthe owner if they can read the chat or run; platform_admin; admin
can_updatethe owner if they can read the chat or run; admin
can_deletethe 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:

PermissionRule
can_readany organization member
can_updateadmin, platform_admin
can_deleteadmin, 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.

EndpointReturns
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/permissionGrant or revoke a level
POST /api/permission/publicMake public or private

Valid EntityType values: User, Organization, Assistant, Chat, Workflow, DocumentSource, Document, ChatSettings, IngestionSettings, Rating, Skill, WorkflowRun, WorkflowSchedule, Group.

In the web app​

ToolUse 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 BotModalHide a modal's confirm button
permission on a dropdown or modal actionHide one action in a menu
PROTECTED_ROUTESRedirect from a whole page, server-side

Per-item results are cached for 10 minutes.