Complete Permissions Reference π‘ BETA
Use this page as a map to the permission sources and the route-level gates; the RBAC tables and the source are the authority for any specific key.
Admin guide Β· permission reference runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Looking up a permission family, checking a route gate | Source checkout, running server | Find the key, find the consumer, probe route | Key is consumed and route refuses | Restore the previous RBAC row |
When to use
Use this runbook when a permission name appears in a script or an API response and you must confirm that it is enforced, not merely declared.
Before you start
- Permission naming follows the application family and action. A name with no consumer outside its declaration is not a gate; delete the claim rather than document it.
- Route-level access is enforced in the API gateway. Routes are either public, authenticated, application-scoped or admin/superadmin-scoped; the default is deny.
- The generated API reference is the authority for routes that exist; a route in prose alone does not exist.
Permission Naming Convention
Read the family and the action from the source definition. Do not infer a key from a page title or a menu label.
Quick Reference by Application
| Family | Where the authority lives |
|---|---|
| Administration, organization, users, groups, roles | RBAC tables and admin handlers |
| Compliance, security | compliance and security handlers |
| Mail, calendar, drive, docs, sheet, slides | per-app handlers and scopes |
| Chat, tasks, bots, knowledge base | bot handlers and folder permissions |
| Analytics, monitoring | analytics handlers |
| Integrations, automation, designer, settings | corresponding app handlers |
Role-Permission Matrix
| Role label | Meaning |
|---|---|
| Global Administrator / SuperAdmin | full administrative surface |
| Billing, Compliance, Security, User Administrator | scoped administrative families |
| Standard User | application access within its tenant |
| Guest / Viewer | read-only or limited scope |
A label is a convenience: the effective set from the resolver is the answer.
Route-Level RBAC Permissions (API Gateway)
| Route class | Access |
|---|---|
| Public routes | anonymous, explicitly listed |
| Authenticated routes | any authenticated user |
| Application routes | authenticated user with the app scope |
| Admin routes | admin role resolved from groups |
| Directory / SCIM / analytics routes | admin or superadmin |
| Self-service RBAC routes | authenticated user for their own scope |
| Everything else | default deny |
Steps
# 1. Find the permission name in source and confirm a consumer branches on it.
grep -RIn "<permission-name>" botserver/src botserver/crates --include='*.rs' | head -30
# 2. Confirm the route exists in the generated API reference.
# 3. Probe the route as a lower-privileged identity; it must be refused.
Verify
| Check | Command / surface | Pass condition |
|---|---|---|
| Key consumed | grep for the permission name |
at least one enforcement branch |
| Route exists | generated API reference | present in generated output |
| Gate | probe as a lower-privileged user | refused |
| Default deny | unlisted route | refused |
| Audit | server log | decision recorded |
Roll back
π΄ Restore the previous RBAC row from a pre-change dump and re-run the table. A route that accidentally became anonymous is an incident: follow incident response.