HIGH story-no-access-screen-restricted-roles-organization-admin-005 5 pts

User Story

As a Organization Administrator
I want to see a role switch option on the no-access screen when I have another role that would grant me access
So that I can switch to the appropriate role and continue my task without logging out and back in

Acceptance Criteria

  • Given a peer mentor who also holds a coordinator role attempts to access a coordinator-only route, when the no-access screen is shown, then a role switch widget offering the coordinator role is displayed
  • Given the role switch widget is displayed and the peer mentor selects the coordinator role, when the role state manager updates the active role, then the user is navigated to the originally requested route without re-authentication
  • Given a peer mentor has only one role and lacks permission for the blocked route, when the no-access screen renders, then no role switch option is shown
  • Given the peer mentor switches role via the no-access screen, when the role switch completes, then the role-aware bottom navigation reflects the new active role
  • Given the peer mentor switches to a role from the no-access screen, when they later navigate back, then the system remembers the last active role and does not revert unexpectedly

Business Value

Organizations such as NHF have complex multi-chapter structures where an individual may simultaneously be a peer mentor in one chapter and a coordinator in another. Without an inline role switch on the no-access screen, these users face a disruptive logout-and-login cycle that significantly degrades usability. A seamless role switch directly from the denial screen reduces friction, prevents users from abandoning tasks mid-flow, and supports the app's goal of replacing cumbersome manual processes with an efficient digital workflow.