The short answerAccounts, teams and roles are the layer of a SaaS product that decides who can sign in, which organisation they belong to and what each person is allowed to do. Neogenio builds it for founders and product teams selling to more than one customer, with every permission checked on the server. You get a tested foundation as code you own, so it does not need rebuilding when paying customers arrive.
What the account layer actually covers
Most products start with a login screen and grow from there. The trouble is that a login answers only one question: who is this person. A product sold to companies has to answer two more on every request: which organisation is this person acting for, and what is this person allowed to do inside it.
We treat those three questions as one layer, built together. Accounts handle sign up, sign in, password reset and invitations. Organisations group people into the customer that pays you. Roles describe what each member can see and change, and the server applies them before any data leaves the database.
This is the layer every other feature sits on. Projects, reports, billing and settings all need to know who owns them. If the layer is built late or patched in, each new feature carries its own copy of the access rules, and those copies slowly drift apart.
- Accounts: email login, password reset and invitations
- Organisations: customers work in teams, and members belong to an organisation
- Roles: owner, member and viewer, or the set your product needs
- Server checks: every query filtered by the customer it belongs to
Why access is checked on the server
A browser is not a safe place to make access decisions. Anyone can open the developer tools, change a request and send it again. If the only thing stopping a viewer from editing a record is a hidden button, the record is not protected.
So every request is checked where the data lives. When a member asks for a list of projects, the query itself is filtered by their organisation, not by what the interface chose to show. A user who edits the request still receives only their own organisation's rows.
Broken access control sits at the top of the OWASP Top 10 list of web application risks, and it is rarely caused by clever attacks. It usually comes from one endpoint that forgot to check. Building the check into the data layer, and testing it first, means a new endpoint cannot quietly skip it.
How access is tested before anything else
Access rules are easy to describe and easy to break. A change made for a good reason in one screen can open a gap in another. That is why the tests for access are written alongside the rules, not added once the product looks finished.
A typical test signs in as a member of one organisation and tries to read, change or delete something that belongs to another. The expected answer is a refusal, every time. Further tests check that a viewer cannot edit, that a member cannot manage billing, and that a pending invitation grants nothing until it is accepted.
These tests run on every change to the code. If someone later adds a new endpoint and forgets the organisation filter, a test fails before the change reaches your customers. The tests are part of what we hand over, so your own developers keep that safety net after handover.
For you as the owner, this turns a promise into something you can inspect. You can read the list of cases, see them pass, and ask for a new case whenever a customer raises a question about who can see what.
Designing roles that fit your product
Owner, member and viewer cover a lot of products. The owner manages the organisation, its members and billing. A member does the everyday work on their own projects. A viewer can read but not change anything. That is the shape shown in the example card on this page.
Your product may need something different. An agency tool might need a client role that sees only approved work. A clinic scheduling app might separate front desk staff from practitioners. A B2B ordering portal might let buyers place orders while only finance sees invoices.
The scoping call is where we write this down: each role, and each action it can or cannot take. Writing it as a simple table before any code exists catches most of the awkward cases, such as who can remove the last owner, or what happens to a member's work when they leave.
Roles are built so adding or changing one later is a change, not a rebuild. Starting with a small set and adding a role when a real customer asks for it is usually better than guessing at ten roles on day one.
Invitations, members and the life of an account
Teams grow one invitation at a time. An owner enters an email address, picks a role and sends the invitation. Until it is accepted it shows as pending with the role already attached, so nobody gets more access than intended when they finally click the link.
The edges matter as much as the normal path. A person may be invited twice, try to accept from a different address, or already have an account elsewhere in your product. Each of these cases gets a defined outcome during scoping, rather than whatever the code happens to do.
If your product charges per organisation, the same structure connects to plans and billing on your own Stripe. Our SaaS development service covers that billing and usage layer in full, on top of the same organisation model.
Three ways to add accounts and roles to a SaaS product | Built with Neogenio | Patched in later | Login service only |
|---|
| Where access is checked | On the server, every query | Depends on each developer | Login only, rules are yours |
|---|
| Organisations and members | Built in from the start | Retrofitted onto old data | Varies by provider |
|---|
| Custom roles | Mapped to your product | Added screen by screen | Basic, extra work needed |
|---|
| Tests on access | Written and run first | Often manual | Your responsibility |
|---|
| Ownership | Your repository and data | Yours | Tied to the provider |
|---|
Common mistakes to avoid
Each of these is cheap to avoid at the start and expensive to fix once real customers have data in the system. That is the reason access is the first thing we build and the first thing we test.
- Checking permissions only in the interface, so a hidden button is the only protection.
- Adding organisations after launch, which means assigning every existing record to an owner it never had.
- Hard coding role names into dozens of screens, so a new role means editing all of them.
- Testing access by hand once, instead of with automated tests that run on every change.
- Letting the last owner leave, which leaves an organisation that nobody can manage.
Who this is for and how the work runs
This fits founders building a first sellable version, teams whose prototype has outgrown one shared login, and companies adding a customer-facing product next to an existing service. If you are still shaping the idea, our articles on custom SaaS applications with Neogenio and AI and SaaS development projections for 2027 give useful background.
The work follows three steps. One call maps the roles and what each one can do. Then comes a build where access is built and tested first, at a fixed price agreed after that call. Finally we host and maintain it, or hand over the repository and documentation so your team runs it.
You own the repository and the data at every step. If you want to see a working multi-customer product from us, our SEO AI Engine is a SaaS we build and run ourselves.