How to design roles and permissions for team accounts
A few fixed roles named after real jobs, checks on the server, data kept apart by account and a readable log: how to plan who can see and change what.
The first customer of a new product is usually one person. Then they invite a coworker, then their whole team, and one day an intern can see payroll notes or a volunteer deletes a year of records with a single click. Roles and permissions are the part of a product that decides who can see and change what, and most teams only design them after something goes wrong.
Getting them right early is cheaper than retrofitting them later, because permissions touch every screen, every report and every export. Here is how we approach roles when we build team software, for our own products and for clients.
Start with the people, not the permission list
It is tempting to begin with a spreadsheet of every action in the product and a checkbox for each one. That list matters later, but it is the wrong starting point. Start by writing down the real people who will share an account and what their week looks like.
A small business might have an owner, an office manager, a few staff and an outside bookkeeper. A church might have a pastor, a few department leads and dozens of volunteers. Each of those people has a job, and the job tells you what they need to see, what they need to change and what would worry the owner if they could touch it. Roles that match real jobs are roles people can assign without reading a manual.
Begin with a few fixed roles
Most products can launch with three or four roles and cover nearly everyone:
- Owner. Controls billing, can delete the account and can change anyone's role. There should always be at least one, and the product should refuse to remove the last one.
- Admin. Can manage people and settings and do everything in the product, but cannot close the account or change the plan.
- Member. Does the daily work: creates, edits and completes things, but does not change account settings or invite people.
- Viewer or guest. Can see what has been shared with them and little else. Useful for clients, board members and outside helpers.
Fixed roles are easy to explain on a pricing page, easy to test and easy to support. When a customer writes in asking why someone cannot see a report, the answer is one sentence. Custom roles can come later, once you have watched enough accounts to know which combinations people really ask for.
Check permissions on the server, every time
Hiding a button is not a permission. If the delete button is gone from the screen but the server still accepts the delete request, anyone with a browser's developer tools can still delete the record. Every action has to be checked where the data lives, on every request, no matter which screen, app or integration sent it.
The practical rule is to write each check once, in one place, and call it from everywhere. In a Laravel app that usually means policies; in other stacks it is a small permissions module that every controller and background job uses. The screens then ask the same module whether to show a button, so what people see always matches what they are allowed to do.
If a permission only lives in the interface, it is a suggestion, not a rule.
This matters even more now that AI assistants can act inside software. An assistant should go through the same checks as the person it works for, which we covered in how to let AI assistants use your software without losing control.
Keep every account's data apart
Roles decide what people inside one account can do. Separately, every query has to make sure nobody ever sees another account's data. This is the most serious permission bug a product can have, because one mistake leaks a customer's records to a stranger.
The safest pattern is to scope data by account at the lowest level you can, so a developer has to go out of their way to skip it rather than remember to add it. Then write a few tests that sign in as one account and try to open, edit and export records from another. Run those tests on every change that touches data access. They are boring to write and they are the ones you will be most glad to have.
Plan for the awkward cases
Real teams are messier than a role table. A few situations come up in almost every product, and deciding them early saves painful support threads:
- People who leave. When someone is removed, their work should stay. Decide who inherits their open tasks and records, and never delete content because its author lost access.
- People in more than one account. A bookkeeper or consultant may work for several customers. One login with a clear account switcher beats a separate login for each.
- Sensitive corners. Payroll, giving records, health notes or private messages often need tighter rules than the rest of the account. Mark those areas early, even if the first version only lets owners see them.
- Exports and reports. A person who can see ten records on screen should not be able to download all ten thousand. Check permissions on exports, scheduled reports and email digests too.
- Invitations. Decide who may invite people and what role an invite can grant. An admin should not be able to create a new owner.
Make access visible and reversible
Owners need to answer two questions quickly: who can see this, and who changed it. A single page listing every person, their role and when they last signed in answers the first. An activity log that records role changes, removals and deletions answers the second.
Write the log for humans. "Maria changed Sam from Member to Admin on December 3" is useful to an owner; a row of IDs is not. Where you can, pair risky actions with a way back: a trash folder instead of instant deletion, a short window to restore a removed person, a confirmation step before anything that cannot be undone.
What to do next
If you are planning a product, or already running one that is starting to get team accounts, take an afternoon with this list:
- Write the cast. List the real people who share an account and what each needs to see and change.
- Pick three or four roles. Name them after jobs, and write one sentence for each that a customer would understand.
- Find your checks. Confirm every action is verified on the server, in one shared place, including exports and background jobs.
- Test across accounts. Add a few tests that try to reach another account's data, and keep them in every run.
- Show who has access. Give owners one clear page of people and roles, plus a readable log of changes.
Permissions are rarely the feature anyone asks for, and they are often the reason a larger team decides it can trust your product. If you want a second set of eyes on the roles in something you are building, get in touch.
Start a project