Select Active Organization Context After Login
When a user belongs to multiple organizations or local associations, the Organization Selection Screen is displayed immediately after successful authentication. The user selects their active organizational context for the session, which scopes all subsequent data access, activity registration, and reporting to the selected organization. This selection is persisted to local state so the correct context is maintained throughout the session. Users with only a single membership bypass this screen automatically and proceed directly to their home screen.
User Story
Acceptance Criteria
- Given a user with memberships in multiple organizations, when authentication succeeds, then the Organization Selection Screen is displayed before the home screen
- Given the Organization Selection Screen is displayed, when the user selects an organization, then the session context is set to that organization and the user is navigated to the home screen
- Given a user with only one organization membership, when authentication succeeds, then the Organization Selection Screen is skipped and the user proceeds directly to the home screen
- Given an organization context has been selected, when the user navigates throughout the app, then all data and actions are scoped to the selected organization
- Given the user wants to change their active organization, when they switch roles or re-authenticate, then they are presented with the organization selection screen again
Business Value
NHF requires handling members in up to five local associations simultaneously with no double-reporting. Without this screen, users operating across multiple local associations would report activities to the wrong organization, causing data corruption in Bufdir grant reporting and potentially resulting in loss of grant funding. This provides the organizational scoping foundation that all other features depend on.
Components
- Organization Selection Screen ui
- Role Authorization Service service
- User Role Repository data
- Role Config Store data