Skip to content

Role-Based Access Control (RBAC) Overview 🟑 BETA

Understand the four objects RBAC resolves β€” users, roles, groups and permissions β€” before changing an assignment.

Admin guide Β· RBAC orientation runbook

When to use Before you start Steps Verify Roll back
First time configuring access, comparing with another platform Source checkout, admin identity Read the tables, resolve a test user Effective set matches the model Restore prior assignment

When to use

Use this runbook for orientation before running the configuration guide or reading the permissions matrix.

Before you start

  • A user is an identity from the directory service; a role is a named bundle; a group maps users to roles; a permission is the atomic capability the code checks.
  • The effective permission set is what the resolver returns for a user in a tenant. A role label is not itself an authorisation.
  • Anonymous sessions exist for chat but must not inherit an administrative capability.
  • The platform comparison with Office 365 or Google Workspace is a naming analogy only; the enforcement is in this repository.

Steps

# 1. Read the resolver and the tables.
grep -RIn "rbac_user_groups\|resolve_user_role" botserver/src botserver/crates \
  --include='*.rs' | head -30

# 2. Resolve a test user's membership.
psql -h localhost -U postgres -d botserver -c \
  "SELECT user_id, group_name FROM rbac_user_groups WHERE user_id = '<user-id>';"

# 3. Check what the generated API exposes for roles and groups.
#    Use the generated reference, not a hand-written endpoint list.

Verify

Check Command / surface Pass condition
Users directory service identity comes from the directory
Roles RBAC tables names resolve to a permission set
Groups rbac_user_groups query membership is explicit
Inheritance resolver group role is inherited
Anonymous anonymous session probe no admin capability
API generated reference routes match source

Roll back

πŸ”΄ No change is made by reading this page. If a configuration change followed it, restore the prior assignment through RBAC configuration and re-run that page's table.