Users and roles
Covers user management, role assignment and department membership.
User management

- Lists use server-side pagination and server-side search, filterable by department and status
- New users receive an initial password; forcing a change on first login is recommended
- Batch operations are authorized per record on the server; one failure does not affect others
- Disabling a user invalidates their tokens
Role assignment
A user can hold multiple roles and permissions are unioned. Roles are maintained in the admin UI and contain capability codes and data scopes.
| Concept | Purpose |
|---|---|
| Role | Container for a permission set |
| Capability code | Controls buttons and API access |
| Data scope | Controls which rows are visible |
Departments and positions
- Departments form a tree; sorting and parent selection are scope-checked
- Positions label user functions and do not directly grant permissions
- Department write operations are scoped: users only operate within their own scope
