A fully remote UK team. Send a message or a voice note and we handle the rest. Book a consultation

Accounts, roles and permissions: designing who sees what

How we plan user roles and per-client scoping so each person sees only their own data.

Abstract dark and orange artwork for the article: Accounts, roles and permissions: designing who sees what

Most software used by more than one person needs to answer two questions every time someone does something. Who are you? And are you allowed to do this?

The first question is about accounts: signing in and proving who you are. The second is about permissions: what each person can see and change. Getting both right is what lets a customer see their own orders but not anyone else's, a member of staff update a booking but not delete the company's records, and a manager see reports that others cannot.

This post explains how we plan accounts, roles and permissions, and why we design them in from the very start. It is part of our series that begins with web app architecture in plain English.

Illustration: the layers of a web app, from interface to dataIllustration: the layers of a web app, from interface to data
The layers of a web app, from interface to data.

Why this is designed in, not added later

It is tempting to build the main features first and "add logins later". In our experience that is a reliable way to create problems.

Permissions touch almost everything. Every screen needs to know what to show. Every action needs to know whether it is allowed. Every report needs to know whose data to include. Adding that to a system that was built without it means revisiting almost every part of it, and there is always a risk that one corner gets missed.

Designing permissions from the start is simpler and safer. Each feature is built knowing who can use it, and the checks are part of the foundations rather than a layer painted on top.

Accounts: who are you?

An account is how the system recognises a person. Planning accounts means deciding a few things.

How people get an account

Some systems let anyone sign up. Others are invite-only. For business tools and client portals, invite-only is often the right choice: you decide who has access, and nobody can wander in uninvited.

Our own client portal works this way. Clients are invited by personal link, which works once and expires after a while, and they choose their own password when they first sign in. Nobody else can create an account for themselves.

How people prove who they are

The usual starting point is an email address and a password. On top of that, two-step login (also called two-factor authentication) asks for a second proof, often a code from an app on your phone. The National Cyber Security Centre describes two-step verification as one of the most effective ways to protect online accounts, because it helps keep criminals out even if they know your password (NCSC, turn on two-step verification).

We decide with you where two-step login should be optional and where it should be required. For people who can see sensitive information or change important settings, we recommend making it required.

Protecting the sign-in itself

The sign-in page is a natural target. We build in protections such as limiting repeated failed attempts, so that someone cannot simply keep guessing passwords. Our post on the security basics we build in covers these in more detail.

How long people stay signed in

Staying signed in is convenient, especially on a phone. Being signed in for ever is risky. We set sensible session lengths for each kind of user and make it easy to sign out, including from all devices at once if a phone is lost.

What happens when someone leaves

When a member of staff leaves, or a client relationship ends, their access should end cleanly. We make it straightforward to disable an account without losing the history of what that person did.

Why everyone should have their own account

Many small businesses share a single login: one "office" account that everyone uses. It feels simpler, and it is common. It also causes problems that are easy to avoid.

You cannot tell who did what. If a booking is cancelled by mistake, a shared account cannot tell you who cancelled it. That makes mistakes harder to fix and harder to learn from.

Removing access is painful. When someone leaves, the only way to stop them using a shared login is to change the password and tell everyone else the new one.

Everyone gets the same access. A shared login has to be powerful enough for the person who needs the most access, so everyone else has more than they need.

Passwords travel. Shared passwords end up written on notes, sent in messages and saved on personal devices.

Individual accounts fix all of this. Each person signs in as themselves, gets the role they need, and can be removed in one step. Systems we build make individual accounts easy to set up, so there is no temptation to share. If cost is a concern with a product you use elsewhere, because it charges per user, that is worth weighing honestly, but in your own software it need not be a barrier.

Roles: groups of permissions

Rather than setting permissions person by person, most systems group them into roles. A role is a named set of things someone can do. When a new person joins, you give them a role and they get the right access immediately.

Typical roles might include:

  • Owner or administrator. Can manage settings, users and everything else.
  • Manager. Can see reports and approve things, but not change system settings.
  • Staff. Can do the day-to-day work: update bookings, process orders, add notes.
  • Read-only. Can see information but not change it, useful for an accountant or adviser.
  • Customer or client. Can see and manage only their own information.

The right roles depend entirely on your business. We work them out with you during discovery, usually by walking through what different people actually do in a typical week.

Permissions: the fine detail

Within roles, permissions decide exactly what is allowed. It helps to think about them along a few lines.

Which actions. Viewing, creating, editing, approving, deleting and exporting are different permissions. Many people need to view; fewer need to delete; very few need to export everything.

Which records. A customer should see only their own orders. A regional manager might see only their region. A member of staff might see only the jobs assigned to them.

Which fields. Sometimes a person can see a record but not every part of it. Staff might see a customer's order but not their full payment history.

Which settings. Changing prices, tax rules or user roles is usually limited to a small number of people.

Per-client scoping

For client portals and multi-customer systems, one rule matters above all: each client sees only their own information, and nothing else.

This is called scoping, and where it is enforced matters a great deal. It is not enough for the screens simply to hide other clients' records. The check has to happen on the server, every time information is requested, so that even someone tampering with their browser cannot see another client's data.

That is how our own client portal is built. Every request is checked on the server against the client the person belongs to. We test this specifically, because it is exactly the kind of thing that must never go wrong. We apply the same approach to portals we build for clients, as described in client portals.

Illustration: a shield and padlock protecting dataIllustration: a shield and padlock protecting data
A shield and padlock protecting data.

Approvals and responsibility

Some actions need more than permission; they need a named person to take responsibility. Approving a quote, signing off a stage of work, or authorising a refund are examples.

In our client portal, only the approvers at a client's company can approve a project update or ask for changes. That gives a clear record of who agreed what. In your own systems, we can build similar approval steps where they help, for example requiring a manager to approve discounts above a level you set.

Least privilege

A useful principle runs through all of this: give each person the access they need to do their job, and no more. It is often called least privilege.

It is not about distrust. Most problems with access come from honest mistakes: deleting the wrong thing, sending a report to the wrong person, changing a setting without realising its effect. Limiting access limits the reach of those mistakes. It also limits the damage if an account is ever compromised.

We apply the same principle to ourselves. Our AI assistants, for example, each have narrow access limited to their particular job, and none of them can see secrets such as passwords.

Keeping a record

For many systems, it is worth recording who did what and when: who changed a price, who approved an update, who exported a list of customers. This is often called an activity log or audit trail.

A good activity log helps you answer questions later, resolve disagreements, and spot anything unusual. We decide with you which actions are worth recording, and we design the log so that it cannot be quietly edited.

Illustration: three people with different levels of accessIllustration: three people with different levels of access
Different people with different levels of access.

Making permissions manageable

Permissions should be easy for you to manage, not just for us. We aim for:

  • Clear role names that match how you talk about your team.
  • Simple screens for inviting people, changing roles and removing access.
  • Sensible defaults, so that new users start with limited access rather than full access.
  • A way to see at a glance who has access to what.

Questions to think about before we start

You do not need to have the answers, but it helps to think about:

  • Who will use the system, both inside and outside your business?
  • Which groups of people do broadly the same things?
  • Is there anything that only one or two people should ever be able to do?
  • Should customers or clients be able to see anything at all? If so, exactly what?
  • What should happen when someone leaves?
  • Would it help to know who changed what, and when?

In short

Accounts answer "who are you?" and permissions answer "what can you do?". We plan both from the start: invite-only access where it suits, two-step login for sensitive roles, sensible session lengths, roles that match your team, and server-side checks so each client sees only their own information. We follow least privilege, keep a record where it helps, and make it easy for you to manage. If you have a system in mind with different people needing different access, get in touch.