RBAC & Permissions
NearSync uses a role-based access control (RBAC) system that governs what each user can see and do. Permissions are checked at both the UI layer (navigation gating, component visibility) and the data layer (RLS policies).
System Roles
NearSync defines six system roles in ascending order of access:
| Role | Description |
|---|---|
| viewer | Read-only access to assigned modules |
| staff | Standard operational access - can create and edit records within assigned modules |
| manager | Module-level management - can manage team members' records and approve workflows |
| admin | Organization-wide administration - can configure settings, manage users, and access all modules |
| org_owner | Full organization control - includes billing, subscription management, and destructive operations |
| super_admin | Platform-level access - reserved for NearSync platform operations (managed deployments only) |