Overview
One place that answers who holds which role, in which application. Each application still decides what its roles are allowed to do.
Applications
0
0 external (reference only)
Roles
0
0 derived from the agents table
Staff with access
0
of 0 in the directory
Grants
0
migrated out of hardcoded lists
Connection progress
Where each application stands on moving to OakAccess. Until an application is switched, it keeps using its own list and nothing changes for its users.
What this replaces
Today, who is an admin or auditor is decided by arrays of staff IDs committed into three separate frontends. Changing someone's access means a code change, a review and a deploy.
Benefit-Workflow-frontend/src/server/users.ts162 lines, maintained by handregistration-portal/src/server/users.ts141 lines, maintained by hand6MonthsReturns/src/server/users.ts156 lines, maintained by hand
Found while importing those lists
5 items need a human decisionThese are real contradictions in the current data, not sample problems. Each one has to be resolved by a person before the corresponding file can be deleted — which is why migration is the slow part, not the build.
OAK246 has two different names
ConflictRecorded as “OAK Admin” in Benefit Workflow and 6 Months Returns, but as “David Adokuru” in the Registration Portal. Same staff ID, different human. Nobody can currently say which is correct without asking.
Benefit-Workflow-frontend/src/server/users.tsregistration-portal/src/server/users.ts6MonthsReturns/src/server/users.tsOAK145 exists in only one list
GapIyabo Aremu is an admin in the Registration Portal but absent from the other two lists entirely. Intentional, or just never added?
registration-portal/src/server/users.tsOAK146, OAK104 and OAK294 are both Admin and Auditor
Needs a decisionThree people hold Admin and Auditor simultaneously in Benefit Workflow. If auditing is meant to be independent oversight, that is a segregation-of-duties question — and the registry cannot express such a constraint yet.
Benefit-Workflow-frontend/src/server/users.tsbenefit-docs has a non-staff role
Needs a decisionThe Client role in the Benefit Documentation System is for external RSA holders verified by OTP, not employees. Staff and client identity should not share one registry — recorded for completeness, but flagged for a decision.
OakBenefitDocumentAPI/Models/Enums.csRole checks in Benefit Workflow are client-side only
Needs a decisionkanban-benefit-workflow.tsx and sidebar.tsx gate the UI, but the matching oakapi endpoints do not re-check. Centralising roles feeds better data into a lock that is not attached to the door; server-side checks need adding during migration.
Benefit-Workflow-frontend/src/components/kanban-benefit-workflow.tsxBenefit-Workflow-frontend/src/components/layout/sidebar.tsx