5 min read · ERP and CRM

A new salesperson asks for system access. The administrator isn't sure which menus to grant, so they give admin rights for now to avoid being chased every day. Three months later, someone has changed a payment amount and nobody knows who did it.
This article helps you design permissions in an ERP (a system that keeps sales, accounting and inventory in one place), starting from what each person actually does, not from the menus the system offers.
Build a table of roles, data and actions
A permission matrix is a table with roles as rows and data and actions as columns, filled in with whether each is allowed. You can do it on paper or in Excel before configuring the system.
- Data: customers, quotations, invoices, payments received, stock, system users
- Actions: view, create, edit, delete or cancel, approve, export
- Scope: only their own records, only their team's, or the whole company
The starting principles OWASP recommends for access control are to grant only what the duties require (least privilege) and to deny by default unless access is explicitly allowed (deny by default).
Separate preparer, reviewer, approver and administrator
For work involving money, one person should not be able to do every step, so that someone else can check.
- Preparer: creates and edits their own documents before sending them for review
- Reviewer: checks accuracy and returns or forwards the document, but should not change figures on the preparer's behalf
- Approver: decides within the agreed limit and should not approve documents they created themselves
- Administrator: manages users and settings, and does not need to see or approve every financial document
Audit log and staff who change teams
An audit log records who did what to which data and when. It should record approvals, changes to amounts, permission changes and denied access attempts. OWASP also recommends logging permission denials for review, but take care not to store too much sensitive data in the log.
- Changing teams: remove the old permissions first, then grant the new ones. Do not let permissions from the old team pile up
- Resignation: close the account as soon as the last working day ends, but keep the name in the history so past actions can be traced
- Review permissions on a regular cycle, for example every quarter, to find any that are more than needed
Hiding menus is not enough
Hiding a button keeps users from getting confused, but it protects nothing. If the back end does not check permissions, anyone who knows the address of a command can call it. OWASP says not to rely on checks in the user interface. Permissions must be checked on the server for every request.
Test with cases that should be allowed and cases that should be denied
Hypothetical example: the “Sales” role must be able to view its own team's customers and create quotations, but must not be able to record payments received or manage users. The test set has 6 scenarios. The first 3 must pass (view own team's customers, create a quotation, send a quotation to the approver) and the last 3 must be denied (view another team's customers, record a payment received, add a new user). The expected result is 3 passed and 3 denied. If any case differs, a permission has leaked and must be fixed before real use.
Checklist before you start
- List roles from real job positions, not from a list of people
- Build the permission matrix and have each department manager review and confirm it
- Identify the steps that need a reviewer separate from the preparer
- Confirm that permissions are checked on the server, not just by hiding menus
- Set up the audit log and decide who reviews it regularly
- Write the procedure for when someone changes teams or resigns, and set a permission review cycle
Who it suits, and its limits
Clear permissions reduce errors and make it possible to trace back who was responsible. They suit companies where several departments use the same data and financial documents are involved.
The limit is that permissions that are too fine-grained tire out administrators and block the people doing the work. A very small company with only a few people may start with three roles. Good permissions also do not help if passwords leak or are shared.
Talk to BT San about your team's permissions
Start by preparing a list of job positions and the documents each position has to handle, then talk to BT San to draft your team's permission matrix together.




