medium complexity extracted Organization Management Confidence: 100%
3
Components
4
Shared
0
User Stories
Yes
Analyzed

Description

Member Associations manages the relationship between individual users and the local associations they belong to, including cases where a peer mentor is simultaneously a member of up to five local associations. Admins can assign, remove, and review association memberships per user, and designate a primary association for default activity attribution. This data drives correct activity roll-ups across the organizational hierarchy and is a prerequisite for accurate Bufdir reporting.

Sources & reasoning

Line 107 directly requires handling users in up to five local associations simultaneously with double-reporting prevention. This membership model is a prerequisite for the hierarchy roll-up and Bufdir attribution logic. Since NHF is a Phase 1 launch organization, and this data feeds the MVP reporting pipeline, it is classified MVP.

  • docs/source/likeperson.md · line 107
    Håndtering av medlemmer i flere lokallag (opptil 5): Avklare tilhørighet og hindre dobbeltrapportering.

Analysis

Business Value

NHF peer mentors frequently belong to more than one local association simultaneously, and activities must be attributed to the correct association for both internal reporting and Bufdir compliance. Without an explicit membership model it is impossible to determine which association should receive credit for a registered activity, leading to reporting errors and potential funding miscalculations. Correct membership management is a direct prerequisite for accurate Bufdir export - a must-have requirement across all four organizations - making this feature load-bearing for the entire reporting pipeline.

Implementation Notes

The member_associations table links users to local_associations with a primary flag and audit timestamps. The API enforces a maximum of five concurrent associations per user and requires exactly one primary association for users with multiple memberships. The admin UI displays each user's current memberships with add/remove controls and a radio selector for the primary association. Activity registration reads the primary association to default the attribution field, with an override available to coordinators. Membership changes are reflected immediately in subsequent activity attributions without requiring a user re-login.

User Stories

No user stories have been generated for this feature yet.