OpenFGA — Organisational hierarchy — POC
The context. Large structures have rights that flow down the hierarchy: a director sees what their teams see. Hard-coding that is unmanageable.
What I prototype
- OpenFGA model:
org→department→team→resource, inheritance relations. - Temporary delegation (cover, leave) without duplicating rules.
list-objectsqueries for "everything this user can see".
Stack
OpenFGA · NestJS · PostgreSQL
POC — hierarchical modelling, not deployed to production.