Administration #users #roles #rbac #permissions #security #access-control #admin Raw .md

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

  1. Go to AdminUsers (/admin/users).
  2. Click Invite User.
  3. Enter the Display Name, Email Address, and Username.
  4. Assign one or more Roles (e.g. Sales, Warehouse).
  5. Click Send Invitation.

2. Modifying Role Permissions

  1. Go to AdminUsersRoles & Permissions (/admin/users/roles).
  2. Select the target role.
  3. Toggle permissions on the resource grid (Create, Read, Update, Delete per resource).
  4. Click Save Permissions. Changes take effect immediately.

Field Reference

FieldDescription
UsernameUser login identity.
EmailNotifications and account email.
RoleAccess tier determining permission policies.
ResourceSystem module (e.g. orders, inventory, finance).
ActionAllowed 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 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.