HIGH story-coordinator-member-overview-organization-administrator-006 2 pts
2
Story Points
High
Priority
Coordinator Member Overview
Feature

User Story

As a user
I want the member overview screen to be accessible only to coordinator and organization administrator roles, with data automatically scoped to my organizational hierarchy via backend enforcement
So that So that peer mentors and other unauthorized roles cannot access sensitive member management data, and so that coordinators only see members within their own organizational scope rather than the entire platform

Acceptance Criteria

  • Given I am authenticated as a peer mentor role, when I attempt to navigate to the member overview route, then I am redirected to the no-access screen
  • Given I am authenticated as a coordinator, when the member overview data loads, then the query returns only members belonging to local associations, regions, or national associations within my assigned organizational hierarchy
  • Given I am authenticated as an organization administrator, when the member overview data loads, then I see members across all organizational levels within my administrative authority
  • Given the Permission Guard validates my role successfully, when the screen renders, then no unauthorized member data from outside my organizational scope is returned by any API call
  • Given Supabase RLS policies are active, when a coordinator query executes, then the database-level policy independently enforces organizational scoping even if service-layer filtering were absent

Business Value

Member management screens expose sensitive volunteer data including contact details, availability, and assignment history. Unauthorized access would violate GDPR obligations and organizational trust. Defense-in-depth enforcement — client-side guards plus server-side RLS — ensures data is protected even against implementation errors, which is a non-negotiable requirement for handling personal data under Norwegian privacy law.