// PART 07
RBAC
Role-based access control is enforced at three server-side points, and none of them is the prompt. This page lists the built-in roles and where enforcement actually happens.
Built-in system roles
Administrative roles
| Role | Description | Typical use |
|---|---|---|
| Global Administrator | full system control | IT director |
| Billing Administrator | subscription & payments | finance |
| Compliance Administrator | audit, DLP, retention | legal/compliance |
| Security Administrator | threats, access policies | security team |
| User Administrator | user & group management | HR, IT helpdesk |
| Groups Administrator | group management only | team leads |
| Helpdesk Administrator | password resets, support | IT support |
Service-specific admin roles
| Role | Manages |
|---|---|
| Mail Administrator | mailboxes, mail flow, distribution lists |
| Drive Administrator | file storage, sharing policies, quotas |
| Meet & Chat Administrator | video meetings, chat settings |
| Knowledge Administrator | knowledge base, document libraries |
End-user roles
| Role | Description | Best for |
|---|---|---|
| Power User | full productivity + automation | developers, analysts |
| Standard User | normal productivity access | regular employees |
| Guest User | limited external access | partners, contractors |
| Viewer | read-only access | auditors, observers |
Permission categories
Permissions follow resource.action and group into families:
- Administration (
admin.*) — organization settings, users, groups, roles, DNS and domains. - Compliance (
compliance.*) — audit logs, compliance policies, DLP, retention, e-discovery. - Security (
security.*) — security settings, threat management, API keys and secrets. - Productivity apps — per-app families (
mail.*,drive.*,docs.*,meet.*,chat.*,tasks.*,calendar.*).
How RBAC is enforced in this product
Three enforcement points, all server-side:
- Route catalogue. Every route declares its read/write permission; the
/metricsand/api/metricsendpoints, for example, are listed as read-onlyGETpermissions and require a Bearer token. - Command catalog filtering. Admin-only capabilities are marked
admin_only: trueon the command (or a row inrbac_api_permissionsfor endpoint prefixes). The catalog filters admin-only entries for non-admin users viaresolve_user_role— the injected manifest shortens per role, and the executor enforces the same rule server-side. - Role resolution.
resolve_user_rolechecksrbac_user_groups→ a group whose name contains “admin” resolves to administrator; the user must exist inuserswith the derived id. In bot scripts, therolescope variable letsstart.basgate admin-only suggestions and tools (IF role = "admin" THEN … END IF), andtool_execonly runs tools associated with the session.
Operating rules
- Add people to groups; let group membership carry the role. Direct per-user grants do not survive an access review.
- Any new admin-only endpoint must be registered in the RBAC permission catalogue in the same change — a catalog entry is the enforcement, not documentation.
- The browser policy surface (
GET|PUT /api/browser/policy) is restricted to the platform admin (is_super_admin). - Test authorization changes with a non-admin account before shipping; the tenant-isolation suite covers data scoping, not menu visibility.