Skip to content
← All insights
Engineering · 5 min read

One platform, many organizations: keeping access separate

How one invite-only platform serves several client organizations: separate spaces, a few clear roles, one login per person, and rules the server checks.

Bartolomeus Delphito

Many clients, one product

For example, an agency runs a portal for three client companies. Each wants to know that its data stays private, that its own administrator can add colleagues, and that the agency can still step in when something breaks. Three separate copies are expensive to maintain. One shared copy raises a single question: how do you keep each organization’s world separate?

This article explains the model in plain terms: the pieces, the three roles, how invitations work, and the mistakes worth avoiding. It draws on the design of ADN’s own platform, described conceptually, with an invented example company throughout.

Give each organization its own address

The first decision is where each organization lives. A common choice is a subdomain per organization, such as acme.platform.example. The address tells the server which organization is being asked for, before anyone signs in.

The address alone proves nothing, because anyone can type any address. So the server treats it as a question, “which organization is this about?”, and then checks the answer separately on every request.

What the server does on every request
  1. Read the addressWork out which organization it names.
  2. Check live membershipLook up whether this person belongs to it right now.
  3. Apply the roleAllow only what that role may do.

Keep roles few and clear

Three roles cover most business platforms. A client uses the product. An admin manages one organization’s people. A superadmin looks after the platform itself, across organizations.

Fewer roles are easier to explain, test, and audit. Add a new one only when a real task cannot be done safely with the existing ones.

RoleScopeWhat it can do
ClientOne organizationUse the product and edit their own profile
AdminOne organizationEverything a client can, plus manage members and invitations
SuperadminThe whole platformOpen any organization and create or rename organizations
Three roles

Try it: who can open what?

Choose a person and an address. The three checks above decide, and the list shows what that person may do inside.

Notice Sita. Removing her from Acme did not delete her account, because the account belongs to the person while membership belongs to the organization. That separation lets someone change employers or clients without losing their login.

Interactive

Who can open which organization?

Person
Open this address
Runs operations at Acme and is a client user at Beta, with one login for both.
  1. 1. Read the addressacme.platform.example points to Acme Logistics.
  2. 2. Check live membershipRina is a current member.
  3. 3. Apply the roleAllowed as ADMIN.
  • Open the organization’s workspace (allowed)
  • Edit their own profile (allowed)
  • See and manage members (allowed)
  • Invite people (allowed)
  • Create or rename organizations (not allowed)

Invitation-only accounts

There is no public sign-up. An admin invites someone by email, and the invitation link works once. For a brand-new person it creates the account. For someone who already has one, it adds a membership.

When an existing user accepts an invitation from another organization, they confirm their existing password first. That proves the person accepting really owns the account being attached.

Inviting someone who already has an account
  1. Admin → Platform: Invite rina@example.com as client
  2. Platform → Invitee: Email with a single-use link
  3. Invitee → Platform: Open the link, enter existing password
  4. Platform → Platform: Verify password, check link unused
  5. Platform → Invitee: Membership added, link now spent

Guardrails that prevent painful mistakes

A few rules matter more than any feature. They are cheap to build at the start and expensive to add after an incident.

Rule 1

Never trust the browser
The organization and role come from the server’s own records. A request that says “I am an admin of Acme” proves nothing.

Rule 2

Keep the last admin
An organization must always have at least one active admin, so nobody can lock everyone out by accident.

Rule 3

No self-demotion
Admins cannot remove or demote themselves. Another admin does it, which avoids organizations with nobody in charge.

Rule 4

Remove access, keep the person
Removing a membership ends access to one organization and leaves the account and every other membership untouched.

Before you build your own

Settle four questions on paper first: who may invite, which roles exist, what happens when someone leaves, and who can see across organizations. Every later screen and rule follows from the answers.

ADN builds invite-only platforms for several organizations, and the first conversation is usually about those four questions. A free consultation is a good place to test your answers.

Frequently Asked Questions

What is multi-tenancy in simple terms?
Multi-tenancy means one running copy of a product serves many separate customers, called tenants, and each sees only its own data. It costs less to maintain than a copy per customer, but it needs careful rules so that one tenant can never see another’s information.
Should each organization have its own subdomain?
It is a clean option: the address names the organization and feels like the client’s own space. Alternatives are a path such as /acme or a picker after login. Whichever you choose, verify access on the server rather than trusting the address.
Can one person belong to several organizations?
Yes, and it suits consultants, auditors, and staff who work across clients. Keep one account per person and store a separate membership, with its own role, for each organization. The person signs in once, and each organization still sees only what their role allows.
Why use invitation-only accounts instead of public sign-up?
Business platforms usually serve known customers, so open sign-up adds spam, support work, and risk without benefit. Invitations tie each account to an organization and role from day one, and a single-use link means a forwarded email cannot be reused.
What happens to a user’s records when they leave an organization?
Removing a membership should end that person’s access to the organization, not delete their global account. What happens to records they created is a business decision. Most teams keep them, attributed to the former member, so history and reports stay intact.