Skip to main content

Story 2.6: Data-Level Access Control

FieldValue
Story Points13
SprintSprint 6-7

User Story

As a Teacher
I want to only see students from my assigned classes
So that I don't have access to other teachers' students

Data Scope Types

ScopeDescription
SELFUser's own data only
CHILDRENParent's children only
ASSIGNED_CLASSESTeacher's assigned classes
DEPARTMENTDepartment staff
ALL_SCHOOLEveryone in school

Implementation

  • PostgreSQL Row-Level Security (RLS)
  • Application-level filtering
  • JWT claims contain data scope