Users, Roles & Permissions
Manage operator accounts, role assignments, and granular Casbin RBAC access control policies.
Routes:
/admin/users /admin/users/roles Users, Roles & Permissions
The Users & Roles module manages operator accounts, authentication security, and granular Role-Based Access Control (RBAC) powered by Casbin.
Access Control Model (RBAC)
flowchart LR
User[User Account] -->|Assigned To| Role[Role e.g. Warehouse]
Role -->|Enforces| Policy[Casbin Policy Matrix]
Policy -->|Grants Permissions| Res[Resource & Action e.g. orders:read, inventory:write]
1. Standard Predefined Roles
- Administrator: Unrestricted access across all modules, configuration, and developer tools.
- Sales Representative: Quotes, Sales Orders, Customer profiles, and Shipments.
- Warehouse Operator: Receiving, Putaway, Bin movements, Picking, and Shipping dispatch.
- Finance / Accountant: Invoices, Credit Notes, General Ledger, Balances, and Bank Reconciliations.
- Read-Only Auditor: Read-only inspection across all operational and financial records.
Step-by-Step Workflows
1. Inviting a New User
- Go to Admin → Users (
/admin/users). - Click Invite User.
- Enter the Display Name, Email Address, and Username.
- Assign one or more Roles (e.g. Sales, Warehouse).
- Click Send Invitation.
2. Modifying Role Permissions
- Go to Admin → Users → Roles & Permissions (
/admin/users/roles). - Select the target role.
- Toggle permissions on the resource grid (Create, Read, Update, Delete per resource).
- Click Save Permissions. Changes take effect immediately.
Field Reference
| Field | Description |
|---|---|
| Username | User login identity. |
| Notifications and account email. | |
| Role | Access tier determining permission policies. |
| Resource | System module (e.g. orders, inventory, finance). |
| Action | Allowed verb (read, write, delete, admin). |
Field Reference & Data Dictionary
Key database fields, input parameters, and definitions associated with this workflow screen:
| Field / Parameter | Display Name | Description & Rules |
|---|---|---|
| username | Username | Unique login handle for the operator. |
| Email Address | Contact email for notifications and password recovery. | |
| role_name | Assigned Role | System role (e.g. Administrator, Sales Manager, Warehouse Staff, Accountant, Read-Only). |
| is_active | Account Status | Active or Suspended status preventing login. |