Team and RBAC
RBAC controls who can mutate policy, billing, and organization state.
Standard roles
owner: full workspace control, billing authority, emergency controlsadmin: policy and team governancesecurity_admin: policy and incident authoritymember: runtime usage with restricted mutation access
Team model
- users can belong to multiple groups
- each session resolves one active workspace context
- team assignment changes affect next policy fetch cycle
Permission boundaries
Admin-only actions should be server-authorized, not client-trusted:
- create/edit/delete team policy
- assign/reassign team membership
- revoke user/device access
- toggle emergency override
- billing seat and plan operations
Device/session governance
Production behavior should include:
- controlled max active device sessions per user
- ability to revoke one device or all devices for a user
- short-lived access tokens + refresh token rotation
- replay-defense revocation when refresh token reuse is detected
Offboarding
When user access is removed:
- revoke device sessions
- remove org/team mappings
- block policy fetch for further CLI execution
- preserve audit record history