Status: Accepted (in force). Reconstructed.

Context

The same human is often several things at once: an admin, an employee, and a manager. Forcing separate logins per role is clumsy; showing everything at once is confusing and a security risk.

Decision

One login can hold multiple profiles (isAdmin / isEmployee / isManager / is_hod flags on the session). The top-right user menu offers a profile switch — from the Admin dashboard, "Employee Profile" and "Manager Profile" (alongside Preferences / Log Out) — that re-authenticates via switchApp(userId) → AUTHENTICATE?version_number=2, re-issuing a session scoped to the chosen profile (also reachable via SSO /auth/switch-app, SwitchApp.tsx). The options appear only when the account actually has more than one profile.

Consequences

Good: one identity, the right lens per task; access is scoped per active profile (an admin viewing their own payslip does so as an employee, not with admin reach); no duplicate accounts.

Bad / costs: a re-auth round-trip on each switch; the session's "active profile" is extra state to reason about; a switchApp failure blocks switching (a runbook scenario).

Scope boundary

This RFD covers the switch mechanism (a People/identity surface). The role-tier + per-permission model — what each profile is allowed to do — is owned by the Identity / Roles & Permissions subsystem, documented there.

Alternatives

Related

configuration §6, how-to §12.