NOVEMBER 2, 2026

SaaS Roles and Permissions: Designing User Management for a B2B Product

How to design SaaS roles and permissions for a B2B product: RBAC, ABAC or ReBAC, tenant isolation, invites, SSO and SCIM for enterprise customers, audit logs, and what Auth0, Clerk and WorkOS cover.

Omer Shalom

Posted By Omer Shalom

5 Minutes read


Short answer: Start SaaS roles and permissions with a role-based model scoped to each customer organization (owner, admin, member, read-only), check every request against the organization first and the role second, and log every permission change. Add relationship or attribute rules when customers need per-record sharing, and SAML SSO with SCIM provisioning when an enterprise deal requires them. The right model depends on how your customers share data internally.

Key takeaways

  • Organization first, role second: every query carries the organization ID, and a role only applies inside it.
  • RBAC covers most early products: a short list of roles mapped to named permissions is easy to explain and audit.
  • ReBAC fits sharing: Google's Zanzibar paper (USENIX ATC 2019) describes the relationship model behind access control in Drive, Calendar and YouTube; OpenFGA is an open-source CNCF project built on it.
  • Enterprise buyers ask for SSO and SCIM: sign-in through their identity provider and automatic account removal when an employee leaves.

Three models: RBAC, ABAC and ReBAC

Role-based access control (RBAC) maps permissions to roles and roles to users. Attribute-based access control (ABAC), as defined in NIST SP 800-162, evaluates attributes of the user, resource, action and environment against a policy, such as "managers approve invoices up to a set amount in their region". Relationship-based access control (ReBAC) checks a chain: the user belongs to a team, the team can edit a folder, the folder contains the document.

ModelFitsCost
RBACAdmin panels, internal tools, early B2B productsRoles multiply with every exception
ABACRules on amounts, regions or record statusPolicies are harder to test and explain
ReBACSharing, nested workspaces, foldersNeeds a separate, synced authorization store

Define permissions as named actions (invoice.approve, user.invite) and map roles to them, so a new role is a configuration change. This applies even to a custom CRM, where each rep sees only their own pipeline.

Multi-tenancy, invites and the user lifecycle

The most damaging permission bug in B2B SaaS is a leak between customer organizations. Filter every query by organization ID in one shared data-access layer or with row-level security, and run integration tests with two organizations. A user can hold a different role in each organization, so membership gets its own table (user, organization, role).

An invite carries the organization and the role, expires, and only the invited email address can accept it. The first screen a new member sees is part of app onboarding and user retention, so the default role should allow useful work on day one. Permission checks run on the server; hiding a button is cosmetic, as covered in mobile app security best practices.

Let's Talk About Your Project

Enterprise requirements: build or buy

Enterprise customers usually ask for single sign-on over SAML 2.0 or OIDC, provisioning over SCIM (IETF RFC 7643 and RFC 7644), and an exportable audit log. Israeli companies have one more reason to log: under the Privacy Protection (Data Security) Regulations, intermediate and high security databases need automated access monitoring with records kept at least two years, and access rights must match each user's duties.

Managed services cover much of this. Auth0 Organizations support invitations, organization roles and per-organization enterprise connections. Clerk Organizations include admin and member roles, custom permissions, verified domains and SAML or OIDC connections. WorkOS offers Single Sign-On, Directory Sync, Audit Logs, RBAC, Fine-Grained Authorization and an Admin Portal for the customer's IT team. Authentication and SSO are usually worth buying; rules that mirror how your customers work stay in your code. For the wider stack, see software choices for startups and software development for startups. To build the permission layer, review custom software development or book a scoping call on the permissions model.

Frequently asked questions

What is the difference between RBAC and ABAC in SaaS?

RBAC grants permissions through roles such as admin or member. ABAC evaluates attributes of the user, resource and action against policy rules, allowing conditions such as amount limits.

When does a SaaS product need SAML SSO and SCIM?

When an enterprise customer's IT team wants employees to sign in through its identity provider and accounts synced from its directory.

Should a startup build its own permissions system?

Most buy authentication, SSO and directory sync from Auth0, Clerk or WorkOS and keep business permission rules in their own code.

What should a SaaS audit log record?

Who acted, in which organization, what changed (including role changes), when and from where. It should be append-only and exportable.

More articles that may interest you

Tell us what you need

One of our engineers will get back to you within 24 hours.