Function and data permissions are different
Function permissions gate pages and buttons, such as viewing orders or issuing refunds.
Data permissions gate whose data is visible, such as only customers you own or only your department orders. Systems that skip this layer discover after launch that every salesperson can see every customer.
Defining roles
Define roles by real job functions: support, sales, finance, warehouse, administrator, each mapped to a set of permissions.
Do not create a role for one individual. When people change jobs, permissions become unmanageable. Temporary access should carry an expiry.
Implementation notes
Enforce checks on the server. Hiding buttons is user experience, not security; each API must authorise independently.
Use stable codes for permission points rather than display names. Names change, codes must not, or saved configurations break.
FAQ
Is this overkill for a small system?
At minimum do roles and data scope. Retrofitting later costs far more than building the structure now.
Should super admin be unrestricted?
No. Destructive actions such as deleting data, changing permissions and exporting everything should require confirmation and leave an audit log.
Should permission changes be logged?
Yes. Who granted what to whom and when is the only trace when something goes wrong.
Related questions
Further reading
- System Redevelopment Service details
- Legacy system redevelopment handover checklist: five steps from inventory to launch
- What compliance checks are needed before AI-generated content goes live? A checklist to go through item by item
- Which scenarios are not suitable for enterprise AI transformation? Hold off on these types
- Should a Timed-Out API Call Be Retried
Sources & References
The following are public sources. Always check the latest requirements on the official authority or platform page.
