How should roles work in custom business software?
Design roles around actions, record ownership and temporary access with tests for common permission boundaries.
How to approach it
Map what a person can do to which record and under what conditions. A manager might approve requests for one department while being unable to approve their own request. Model this boundary and temporary cover explicitly, then test the permissions in both the interface and the API.
Discuss this with DETAY TechWhat to prepare
- Separate view, change, approve and export permissions.
- Test access after a person changes departments.
- Keep an audit trail for high-impact actions.

