2.1 KiB
2.1 KiB
Staff management and roles
Scope: superadmin staff list/create/update/remove/roles and regional staff management APIs. No password values belong in run reports.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| STAFF-01 | P0 | Superadmin creates staff in A with supported role. | Exactly one staff identity; login scoped to A. |
| STAFF-02 | P1 | Edit name/role/password; inspect list and login. | Changes persist; password omitted from public/list payloads. |
| STAFF-03 | P0 | Reassign A staff to B, retry old session. | Current assignment used; A private data no longer accessible. |
| STAFF-04 | P1 | Remove disposable staff, then use old login/token. | Removed identity cannot authenticate or mutate. |
| STAFF-05 | P1 | Duplicate username and case/whitespace variants. | Agreed uniqueness; no half-created staff/user credential. |
| STAFF-06 | P1 | Unknown role/region, zero/negative IDs, empty fields. | Validation before writes; existing staff unchanged. |
| STAFF-07 | P0 | Regional admin attempts arbitrary B assignment/global role creation. | Cannot escape authorized administrative scope. |
| STAFF-08 | P0 | Anonymous/customer calls staff CRUD or role mutation. | Denied without exposing staff credentials. |
| STAFF-09 | P0 | Change protected account/self/last-superadmin identity where supported. | Approved protection enforced; no administrative lockout. |
| STAFF-10 | P1 | Remove staff referenced by coupons/orders/notes. | Approved dependency/history policy; no orphan audit data. |
| STAFF-11 | P1 | Simultaneous create same username or update/remove same staff. | Coherent single identity and clear conflicts. |
| STAFF-12 | P1 | Save timeout after commit; inspect before retry. | No duplicate identity or silent password rollback. |
| STAFF-13 | P1 | Roles list absent/empty or changes while form open. | Clear recoverable form; obsolete role submission rejected. |
| STAFF-14 | P2 | Regional staff list with many A/B identities. | Correct scope, sort/filter and stable row identity. |
Policy checkpoint: exact per-role CRUD rights must be documented before marking permission cases PASS.