Choose language
Hire us
SaaS / Accounts, teams and roles
ACCOUNTS, TEAMS AND ROLES

Access enforced on the server

Sign up and sign in, organisations with members, and roles that decide who can do what. The boundary every multi-customer product needs, built first and tested first.

Free discovery call · Fixed price on the first version · You keep the code
STEP 1
One call to scope it
Access enforced on the server
OVERVIEW
One call to scope it
Built and tested first
Run it, or take it
H2Sign up and sign in.
H2Organisations and members.
Built and tested first
Organisation: acme-studio3 ROLES
1AnaFull access · billingOwner
2MihaiOwn projectsMember
3ElenaRead onlyViewer
4InvitationPending · member rolePending
Checked on every request✓ enforced
Run it, or take it
Status92 / 100
Progress88 / 100
✓ Scoped by organisation
✓ Enforced on the server
Setup ✓Review ✓Publish ✓
Why Neogenio

The part every product needs

A login only says who someone is. A product sold to companies also has to know which organisation they act for and what they may do inside it, on every request.

Technologies used
StripeEmailReactTypeScript
01

Sign up and sign in.

Accounts cover sign up, sign in, password reset and invitations. They are built together with organisations and roles as one layer, so every feature you add later can rely on the same answer to who is signed in.

  • Built together with organisations and roles
  • One answer to who is signed in
  • Every later feature relies on the same layer
How we helpWe build accounts, organisations and roles together as one layer. Every feature you add later can then rely on the same answer to who is signed in and which organisation they act for.
02

Organisations and members.

Organisations group people into the customer that pays you, and each member belongs to one. Projects, reports, billing and settings all know which organisation owns them, so the access rules are not copied into every new feature.

  • Each member belongs to one organisation
  • Projects, reports and billing know their owner
  • Access rules not copied into every feature
How we helpWe group your users into organisations, each matching a customer that pays you. Projects, reports, billing and settings know which organisation owns them, so access rules live in one place.
03

Roles that decide.

Owner, member and viewer cover a lot of products: the owner manages members and billing, a member works on their own projects, a viewer only reads. If your product needs a client role or a finance role, we map that instead.

  • The owner manages members and billing
  • A member works on their own projects
  • A viewer only reads
How we helpWe start from owner, member and viewer, which cover a lot of products. If your product needs a client role or a finance role, we map that instead, before any code is written.

Accounts cover sign up, sign in, password reset and invitations. They are built together with organisations and roles as one layer, so every feature you add later can rely on the same answer to who is signed in.

  • Built together with organisations and roles
  • One answer to who is signed in
  • Every later feature relies on the same layer
How we helpWe build accounts, organisations and roles together as one layer. Every feature you add later can then rely on the same answer to who is signed in and which organisation they act for.
Technologies used
StripeEmailReactTypeScript

How it works in three steps

One call to write down the roles, a build where access comes first, then you choose who runs it. You own the repository and the data at every step.

1

One call to scope it

On the scoping call we write down each role and each action it can or cannot take, as a simple table before any code exists. That catches the awkward cases early, such as who can remove the last owner or what happens to a member's work when they leave.

2

Built and tested first

Access is the first thing we build and the first thing we test, at a fixed price agreed after the call. Tests sign in as a member of one organisation and try to read, change or delete another's data. The expected answer is a refusal, and the tests run on every change.

3

Run it, or take it

We host and maintain it, or hand over the repository and documentation so your own team runs it. The access tests are part of the handover, so your developers keep that safety net and can add a new case whenever a customer asks who can see what.

LET'S BUILD

Ready to automate your SEO & GEO AI workflow?

From keyword research and clustering to AI article generation and WordPress posting, Neogenio helps agencies and businesses scale content production without growing their team.

SEO & GEO AI Audit
Free discovery callTransparent quotesAI-first delivery

What we hand over

Accounts, organisations and roles, checked on the server and covered by tests, delivered as code in your own repository so it does not need rebuilding when paying customers arrive.

THE ACCOUNTS

Accounts

Sign up, sign in, password reset and invitations. 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, and a pending invitation grants nothing. Edge cases, such as someone invited twice or accepting from a different address, get a defined outcome during scoping.

Access enforced on the server
OVERVIEW
One call to scope it
Built and tested first
Run it, or take it
H2Sign up and sign in.
H2Organisations and members.
THE TEAMS

Teams

Organisations with owners and members, built in from the start rather than retrofitted onto old data. Every record belongs to an organisation, and every query is filtered by that organisation on the server. If your product charges per organisation, the same structure connects to plans and billing on your own Stripe.

Organisation: acme-studio3 ROLES
1AnaFull access · billingOwner
2MihaiOwn projectsMember
3ElenaRead onlyViewer
4InvitationPending · member rolePending
Checked on every request✓ enforced
THE ROLES

Roles

Permissions per role, applied by the server before any data leaves the database. A hidden button is not the protection: a user who edits a request in the browser still receives only their own organisation's rows. Role names are not hard coded into screens, so adding or changing a role later is a change, not a rebuild.

Status92 / 100
Progress88 / 100
✓ Scoped by organisation
✓ Enforced on the server
Setup ✓Review ✓Publish ✓
01

Sign in

Email login and password reset for every person, plus invitations that carry a role. This answers the first question on each request, who is this person, while organisations and roles answer the other two.

02

Organisations

Each customer is an organisation with its own members and owners. Who can remove the last owner is decided during scoping, so an organisation is not left with nobody able to manage it or its billing.

03

Roles

Start with a small set and add a role when a real customer asks for it. That is usually better than guessing at ten roles on day one, and the written table of roles and actions stays the reference.

04

Tests

Automated tests check that one organisation cannot reach another's data, that a viewer cannot edit and that a member cannot manage billing. You can read the list of cases and see them pass.

Complete guide

Accounts, teams and roles for SaaS, explained

How the account layer works, how to design roles that fit your product, and the mistakes that cost the most to fix later.

The short answer

Accounts, 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 NeogenioPatched in laterLogin service only
Where access is checkedOn the server, every queryDepends on each developerLogin only, rules are yours
Organisations and membersBuilt in from the startRetrofitted onto old dataVaries by provider
Custom rolesMapped to your productAdded screen by screenBasic, extra work needed
Tests on accessWritten and run firstOften manualYour responsibility
OwnershipYour repository and dataYoursTied 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.

FAQ

Frequently asked questions

Short answers to what founders usually ask: keeping customers' data apart, inviting a team, adding roles later, what a build costs and how it connects to billing.

Access is scoped by organisation and enforced on the server, not in the browser. Every query is filtered by the organisation it belongs to, so a user who edits a request still receives only their own organisation's rows. Tests that try to read another organisation's data run on every change, so an endpoint that forgets the filter fails a test before it reaches your customers.

Yes. 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. Cases such as a person invited twice, accepting from a different address or already having an account get a defined outcome during scoping.

Yes. Roles are built so adding or changing one later is a change, not a rebuild, because role names are not hard coded into dozens of screens. Starting with owner, member and viewer, or a small set that fits your product, and adding a role when a real customer asks for it is usually better than guessing at ten roles on day one.

A fixed price, agreed after the scoping call. We quote one number for the first version rather than an hourly rate. On that call we write down your roles and what each one can do, which is what the price is based on. The first call itself is free and carries no obligation, and you keep the code whatever you decide next.

Yes. If your product charges per organisation, organisations connect to plans and billing on your own Stripe, if you need it. Billing sits on the same organisation model, so the owner role can manage it while a member cannot. Our SaaS development service covers the billing and usage layer in full, on top of that same model.

Multi-tenancy means one application serves many customers, called tenants, while keeping each customer's data separate. In practice every record belongs to an organisation, and every query is filtered by that organisation on the server. Done well, customers share the same code and infrastructure but can never see each other's projects, users or settings, even if someone edits a request in the browser.

Authentication confirms who someone is, usually with an email and password. Authorisation decides what that person may do once signed in, such as editing a project or seeing billing. A SaaS product needs both. Sign in covers authentication, while organisations and roles, checked on the server for every request, cover authorisation. Most serious access bugs live in the second part.

Role-based access control, often shortened to RBAC, gives permissions to roles rather than to individual people. You define what an owner, member or viewer can do, then assign each person a role. When someone's job changes you change their role, not a long list of permissions. It keeps access predictable and easy to review as a team grows.

A login service can handle sign in well, but it rarely knows your organisations, roles and data rules. Those still have to be written and enforced in your own application. The scoping call is where we look at your product and recommend the approach that keeps access checked on the server and keeps the code in your own repository.

Still have questions? We answer within one business day. Contact us →

Get the foundation
right the first time

Tell us your plans and roles. In one call we will tell you what the first version takes and what it costs.

No obligation on the first callFixed price on the first versionYou keep the code
Have a question?

Cookies on this site

We use essential cookies to run the site. With your permission we would also use analytics cookies to understand how it is used. Nothing optional runs unless you accept.

Read our Cookie Policy