SaaS User Roles and Permissions That Scale
Build SaaS user roles and permissions around a permission catalogue, tenant-scoped role assignments and server-side checks, then prove the model with tests that fail closed.

SaaS user roles and permissions decide what each person inside each customer account can see and do. A model that scales has three parts: a catalogue of fine-grained permissions, roles that bundle those permissions and are assigned per tenant, and a server-side check on every request that names the tenant, the user and the specific record. Get those right early and new plans, enterprise customers and support tooling slot in without a rewrite.
This guide is for Australian product owners and development leads. Our related guide on SaaS security covers what buyers ask about before they sign; this article covers how the access model inside the product is designed, run and tested.
Key Takeaways
- Define permissions as actions on resources first, then group them into roles. Code checks permissions, never role names.
- Assign roles per tenant, so one person can be an admin in one customer account and a viewer in another.
- Deny by default and check on the server for every request and every record, as the OWASP Authorization Cheat Sheet recommends.
- Plain roles stop being enough when access depends on ownership, team or record state. Add relationship or attribute rules there, not more roles.
- Accept the model only when automated tests prove cross-tenant and cross-role access is refused.
Why Roles Break as a SaaS Product Grows
Most products start with two roles, admin and member, checked with a line like "if user is admin". That works until a customer asks for a billing-only contact, an auditor who can read but not export, or a contractor limited to one project. Each request becomes a new role, and the role names leak into hundreds of checks across the codebase.
Broken access control is a common failure, not an edge case. OWASP moved broken access control (A01:2021) from fifth to first place in its 2021 list of web application risks, noting that 94% of applications were tested for some form of it. In a multi-tenant product the cost of a mistake is higher, because a missed check can expose another customer's data.
How to Model SaaS User Roles and Permissions
Role-based access control has a formal basis. NIST describes role-based access control as formalised by David Ferraiolo and Rick Kuhn in 1992, and its model was adopted as ANSI/INCITS 359-2004 and revised in 2012. The core idea still holds: users get roles, roles get permissions, and the application checks permissions.
Start With a Permission Catalogue
Write each permission as a resource and an action, such as invoice.read, invoice.approve, user.invite or report.export. Keep the list in one file or table that both the code and the admin screens read from. A permission that is not in the catalogue cannot be granted, and a check for one that is missing should fail the build.
Scope Every Role Assignment to a Tenant
Store role assignments as user, tenant and role together, not as a role on the user record. That allows one login to belong to several customer accounts with different access in each, which agencies, accountants and consultants expect. Tenant context still has to be enforced at the data layer, which our guide to SaaS tenant data isolation covers.
Separate System Roles From Customer Roles
Platform staff such as support and finance need access too, but they should not appear as members of a customer's account. Give them a separate set of platform roles, time-limited support sessions and a visible banner when a staff member is acting inside a tenant. Customers should be able to see that access in their own audit log.
A Decision Workflow for Choosing the Access Model
The OWASP Authorization Cheat Sheet recommends preferring attribute and relationship based access control over plain roles, because rules like "the author can edit their own draft" are awkward to express with roles alone. Use this workflow to decide how far to go.
- Fixed roles per tenant - Use when: access depends only on job function, such as admin, editor or viewer; Watch for: customers asking for one-off exceptions; Acceptance: every permission maps to at least one role and every endpoint checks a permission.
- Roles plus ownership or team rules - Use when: access depends on who created a record or which team or project it belongs to; Watch for: queries that list records without the same filter the detail view applies; Acceptance: a user in team A cannot read, list or export team B records.
- Custom roles built by customer admins - Use when: enterprise customers need their own combinations; Watch for: admins granting themselves platform permissions; Acceptance: custom roles can only contain permissions from the tenant-grantable catalogue.
- Attribute rules - Use when: access depends on record state, region or time, such as locking approved invoices; Watch for: rules scattered through controllers; Acceptance: rules live in one policy layer with unit tests per rule.
Most products need the first two on day one and the third once larger customers arrive. Choosing this early is one of the decisions our related guide on SaaS tech stack choices lists as costly to reverse.
Edge Cases That Break Permission Models
- The last admin leaves. Block removing or downgrading the final admin of a tenant, and give support a documented recovery path.
- Stale sessions. When a role changes, existing sessions and tokens must pick up the change. Short-lived tokens or a permission version on the session both work.
- Guessable record IDs. OWASP warns that a user with access to one object of a type does not automatically have access to every object of that type. Check the specific record, not just the endpoint.
- Exports, files and background jobs. CSV exports, file downloads, webhooks and scheduled reports often skip the checks the screens apply. Run them through the same policy layer.
- Single sign-on group mapping. Enterprise customers map identity provider groups to roles. Decide what happens when a group disappears, and default to the lowest access.
- Invitations. An invite carries a role. Expire unused invites and stop a member inviting someone at a higher role than their own. Our guide to SaaS onboarding flows covers where invites fit in first-use design.
Monitoring and Supportability
Log every permission change, role assignment and refused request with the tenant, user, permission and record involved. Refusals are useful signals: a spike can point to a broken release, while a steady trickle against one record type may point to probing. OWASP lists appropriate logging among its authorization recommendations, and buyers ask for these logs in security reviews.
Support teams need a read-only view of a user's effective permissions in a tenant, so they can answer "why can't I see this?" without database access. That one screen answers the question from the permission model itself and keeps staff out of customer data.
SaaS User Roles and Permissions Checklist for Acceptance
The OWASP Application Security Verification Standard provides requirements you can turn into test cases. These pass conditions apply that approach to a multi-tenant access model, and they belong in CI.
- Every API endpoint and background job declares the permission it needs, and a build check fails if one does not.
- For each role, an automated test confirms allowed actions succeed and every other action is refused with a 403 or 404.
- A user with access to tenant A receives no data from tenant B through any list, detail, search, export or file endpoint.
- A role change takes effect on the next request without the user signing out.
- Removing the last tenant admin is refused, and staff access inside a tenant appears in that tenant's audit log.
Teams building internal and customer-facing platforms on the same model can see how we approach industry business systems for operational software.
Related Resources
- OWASP Authorization Cheat Sheet
- NIST Role Based Access Control project
- OWASP Multi-Tenant Security Cheat Sheet
- Multi-Tenant SaaS Architecture: Isolation Choices
- SaaS Tenant Data Isolation: Shared or Separate Databases?
- White-Label SaaS: Architecture and Brand Boundaries
Answers That Keep Your Access Model Simple
1. What Is the Difference Between Roles and Permissions in SaaS?
A permission is a single allowed action on a resource, such as approving an invoice. A role is a named bundle of permissions, such as Finance Manager. The application should check permissions, so roles can change without code changes.
2. How Many Roles Should a New SaaS Product Start With?
Start with the few that match real job functions in your customers' teams, often admin, member and read-only. Add roles when customers show a repeated need, and consider custom roles before the list grows long.
3. Should Permissions Be Checked in the Frontend or the Backend?
Both, for different reasons. The frontend hides actions a user cannot take, which is a usability choice. The backend check on every request is the security control, because anything sent from a browser can be changed.
4. When Should a SaaS Product Move Beyond Role-Based Access Control?
When access depends on who owns a record, which team it belongs to or what state it is in. OWASP recommends attribute and relationship based rules for those cases instead of creating a new role for every exception.
5. How Do Enterprise Customers Map Their Own Groups to SaaS Roles?
Usually through single sign-on, where identity provider groups are mapped to roles in each tenant. Decide what happens when a group is removed, and default to the lowest level of access.
Check Permissions, Not Role Names
A permission catalogue, tenant-scoped role assignments and a server-side check on every record give a SaaS product room to add plans, enterprise customers and support tooling without rewriting access logic. Write the acceptance tests first, and every later change has a safety net.


