Model ownership as well as roles
A role alone may be too broad. A customer contact can be allowed to read a document only when it belongs to their organisation and has reached the right state.
OWASP separates authentication from authorisation and recommends checking access for each request. The matrix should therefore describe server-side decisions, not just which buttons are visible.
Use a resource-action-condition table
| Resource | Action | Required condition | Refusal example |
|---|---|---|---|
| Case | Read | Member of the assigned organisation | Another organisation’s case identifier |
| Document | Download | Allowed role and published state | Draft document accessed by direct link |
| Request | Edit | Owner and editable state | Already approved request |
| Membership | Change | Explicit administrative authority | Ordinary member changing their own role |
Test access after state and membership changes
Use synthetic records for at least two organisations. Repeat an operation after removing membership or changing the record state. Check direct links and requests as well as the navigation menu.
Record who grants access, who reviews it and what happens when someone leaves. Default refusal is easier to reason about than an expanding list of exceptions, but the final policy still needs business approval. This document prepares implementation and testing; it is not evidence that a live portal is secure or compliant.
Cover exports and previously issued links
In the fictional portal, give an organisation A user the identifier of an organisation B document. Test the direct download and export routes, not only the page menu. The expected refusal must remain true after a role is removed and for sessions that were already open, according to the agreed session policy.
Record who approves ownership transfers and whether a former member retains any access to historical records. These are business decisions that need explicit implementation tests. A matrix with only role names cannot express them; add the resource owner and relevant state before treating a successful login as evidence of authorised access.
Sources and scope of references
- OWASP — Authorization Cheat Sheet — 2026-11-22