Security & Access 7 min read

RBAC Permissions, Multi-Branch Isolation, Google OAuth, Password Reset & Audit

Lock down workspace access with role capabilities, branch-level database guards, Google Sign-In (PKCE), self-service password reset, and immutable audit logs.

1. Fine-Grained RBAC & Multi-Branch Data Isolation

Assign built-in or custom roles (Owner, Admin, Accountant, Sales, Warehouse, Cashier, HR) with per-module View/Add/Edit/Delete and Own-vs-All scopes. Branch scoping restricts each user strictly to their assigned branches' invoices, warehouses, and treasuries.

2. Google OAuth 2.0 + PKCE & Self-Service Password Reset

Enable 1-click Google sign-in with PKCE protection, plus a secure multi-tenant /en/forgot-password flow that dispatches a single-use 60-minute SHA-256 reset token via Platform SMTP and revokes all active sessions upon reset.

3. Audit Trail & Accounting Period Lock

Every create, update, delete, login, impersonation, and export event is captured in /app/audit with configurable retention days. Set an Accounting Lock Date in Settings to freeze closed financial periods.