An internal tool is only useful if the right people can do their work in it and the wrong people cannot do harm. Permissions are often left until the end, when they become a tangle of special cases. Designing them early is cheaper, safer and makes the rest of the tool simpler.
This checklist is for the people who plan and design such tools: what to decide, in what order and what to watch for.
1. Start from real jobs, not the organisation chart
Roles should describe what people do in the tool. Job titles describe where people sit. Two people with the same title may need different access, and a person may do several jobs.
Watch a few people use the current process, or ask them to describe a normal week, and write down the jobs: "enters orders", "checks and approves orders", "handles complaints", "reads reports", "manages users". Each distinct job is a candidate role. Keep the list short. Three to six roles usually cover a small team. A list of twenty usually means the real distinctions have not been found yet.
2. List the things and the actions
Write down the main kinds of record in the tool, such as orders, customers, invoices and users. For each, list the actions that can happen to it:
- view, including which fields;
- create;
- edit, including which fields, and in which states;
- approve, which is a different power from editing;
- delete, or archive;
- export, which copies data out of the tool;
- change who has access.
Then fill in a simple grid with roles down one side and actions across the other, marking what each role may do. This grid is the single most useful document in the project. It surfaces disagreements while they are still cheap to resolve.
3. Give people the least access they need
Start from nothing and add what each job requires, instead of starting from everything and taking away. Separate powers that are often bundled together:
- being able to edit a payment is different from being able to approve it;
- being able to see customer details is different from being able to export all of them;
- being able to manage users should belong to very few people.
For actions involving money, sensitive data or irreversible changes, consider requiring a second person to approve.
4. Decide how access is scoped
Besides what a person can do, decide which records they can see. Common patterns:
- all records in the system;
- records belonging to their team, region or branch;
- only records they created or are assigned to.
Scope is a different question from role, and mixing the two causes confusion. A "manager" role scoped to one branch behaves very differently from the same role across the company.
5. Keep an audit trail
Record who did what and when, and for changes, what the value was before and after. Show the history on the record itself, where a person can use it, and make the full log searchable for administrators. An audit trail answers "how did this get like this?" without blame or guesswork, and it discourages misuse simply by existing.
Give administrators a way to correct things, and require a reason when they override a rule. The reason goes in the log.
6. Design what people see when they cannot
A user who lacks permission needs a clear experience:
- Hide actions that will never apply to a role, so the screen is not cluttered with buttons that do nothing.
- Show a disabled control with an explanation when the action exists but is unavailable now, for example "Only a manager can approve this order".
- Explain refusals in plain words and say who to ask, instead of a bare "403" or "not allowed".
7. Enforce permissions on the server
Hiding a button is not security. Every action must be checked where the data lives, whatever the screen shows. A person who types an address or copies a request directly must be refused. Reviewers and testers should try this deliberately.
8. Plan the full life cycle of access
- How does a new starter get the right role, and who approves it?
- How are temporary changes handled, such as covering for someone on leave, and how do they expire?
- What happens on the day someone leaves or changes job? Access should be removed promptly, and their past work must remain attributed to them.
- Who reviews the list of users and roles, and how often?
9. Test every role
Sign in as each role and try the full set of tasks it should do, and a set it should not. Test combinations too: a person with two roles, a person whose scope has just changed, a record that moves between teams. Keep this as a written test plan, because permissions break quietly when other features change.
Common mistakes
- Shared logins, which make an audit trail meaningless.
- Making everyone an administrator "to keep things moving".
- Relying on hidden menu items for protection.
- Adding a new role for every special request, until nobody can explain the system.
- Forgetting export, which lets someone take the data that the screens carefully protect.