Skip to content
UI/UX5 min read

B2B SaaS Roles and Permissions: Designing Access Control That Scales

Designing roles and permissions for B2B SaaS: RBAC vs attribute rules, default and custom roles, resource access, admin UX, SSO and audit logs.

01

How should B2B SaaS roles and permissions work?

Define permissions as fine-grained actions on resources, group them into a few clear default roles that match how customers work, add resource-level sharing or attribute rules where roles are not enough, enforce every check on the server in one authorisation layer, give administrators a clear interface and audit log, connect to SSO and provisioning for larger customers, and test permissions automatically. Good access control is both a security feature and a usability feature.

This guide is for SaaS product managers, designers and engineers. For tenant isolation, see multi-tenant SaaS architecture; for API enforcement, API security best practices.

02

Key takeaways

  • Model permissions as actions on resources; roles group them.
  • Start with three to five default roles customers recognise.
  • Add resource-level sharing for projects, teams or records.
  • Enforce on the server in one place; the UI only reflects it.
  • Audit every permission change and sensitive action.
  • Test every role against every resource type.
03

Access control models

ModelHow it worksGood for
Role-based (RBAC)Users get roles; roles grant permissionsMost B2B products; easy to explain
Resource-level sharingUsers or teams are granted access to specific projects or recordsCollaboration tools, client portals
Attribute-based (ABAC)Rules based on attributes such as region, department or classificationComplex enterprises, regulated data
Relationship-basedAccess follows relationships (owner, member of, manager of)Hierarchies and nested resources
04

Designing default roles

Base roles on real jobs: owner or billing administrator, administrator, member, and limited or guest users are common. Write each role's purpose in one sentence, list its permissions, and check them against customer interviews. Keep billing and security settings separate from day-to-day administration, and make the least-privileged role the default for new invites.

05

Administrator experience

  • Show what each role can do in plain language.
  • Let administrators preview a user's effective access.
  • Make inviting, changing and removing users quick, with bulk actions.
  • Show who has administrator access and when it was granted.
  • Provide an audit log of permission changes and sensitive actions.
  • Support SSO, group-to-role mapping and automated provisioning (often via SCIM) for larger customers.
06

Enforcement and testing

Centralise authorisation in a shared layer or service that every endpoint uses, checking the user, tenant, role and resource for each request. Avoid scattered ad hoc checks. The OWASP Authorization Cheat Sheet recommends denying by default and validating permissions on every request. Write automated tests for each role, including attempts to reach other tenants' data and admin functions, and run them on every change.

07

12 role and permission models, and when each fits

Roles, permissions and tenant isolation are different things. A permission is a single allowed action (edit invoices). A role is a named bundle of permissions (finance manager). Tenant isolation keeps one customer organisation's data separate from another's, whatever roles exist inside each, and must be enforced regardless of role; see multi-tenant SaaS architecture. Administrative privileges let someone change roles, billing or security settings and deserve the most protection. These are the models most B2B products end up combining; start with as few as your customers need.

Model or roleWhat it allowsFits whenWatch for
1. OwnerEverything, including deleting the account and transferring ownershipEvery organisation needs one accountable personSingle point of failure; allow transfer
2. AdminManage users, roles and settingsMost organisationsKeep admin separate from billing where customers ask
3. Billing adminPlans, invoices and payment methods onlyFinance teams pay but do not use the productAvoid giving data access with it
4. MemberDay-to-day use of core featuresThe default for most usersDefining what members cannot do
5. Viewer (read-only)See but not changeStakeholders, auditors, executivesExports may still leak data
6. Guest or external collaboratorLimited access to specific itemsClients, contractors, partnersMust never see other items or the user list
7. Custom rolesCustomer-defined bundles of permissionsLarger customers with their own policiesSupport burden; needs a clear permission list
8. Resource-level permissionsAccess per project, workspace or recordWork split by team or clientComplexity grows fast; test thoroughly
9. Group- or team-based accessPermissions granted to groups, synced from an identity providerEnterprise customers with SSOGroup sync errors grant or remove access silently
10. Attribute-based rulesAccess by attributes such as region or departmentRules that roles alone cannot expressHard to explain to admins; document well
11. Approval rolesActions need a second person to approvePayments, deletions, high-value changesApprover unavailable; plan delegation
12. Support access and service accountsTime-limited staff access; API keys for integrationsTroubleshooting and integrationsLog every use; scope and rotate keys
08

Common mistakes

  • Permission checks only in the front end.
  • Dozens of roles nobody understands.
  • Everyone invited as an administrator by default.
  • No audit log of permission changes.
  • Users removed from SSO but still active in the product.
09

Hypothetical example: a project management SaaS

This example is hypothetical. A project tool started with owner and member roles. Larger customers asked to give clients read-only access to one project and to stop members deleting projects. The team modelled permissions as actions on workspaces, projects and tasks, introduced administrator, member and guest roles, and added project-level sharing for guests. All checks moved into one authorisation module, with automated tests for each role and cross-tenant access attempts. Enterprise customers got SSO with group-to-role mapping and an audit log export.

10

Example permission matrix

PermissionOwnerAdminMemberGuest
Manage billingYesNoNoNo
Manage users and rolesYesYesNoNo
Configure SSO and securityYesYesNoNo
Create projectsYesYesYesNo
Edit shared projectsYesYesYesIf granted
View shared projectsYesYesYesIf granted
Export dataYesYesConfigurableNo
11
12

Conclusion

Roles and permissions scale when they are modelled cleanly, explained clearly and enforced centrally. Start with a few roles that match real jobs, add resource-level access where needed, support enterprise identity, audit changes and test relentlessly. For employee access across your own business systems, see joiner-mover-leaver automation. To record who changed what, see SaaS audit logging.

Designing access control for your product?

ZSpace Labs is an India-based, remote-first technology studio working with Australian and international businesses on SaaS administration UX and secure SaaS engineering. If it would help to review your permission model, we are happy to talk it through.

Start a Project
FAQ

Common questions.

Most B2B SaaS products start with role-based access control (roles grouping permissions) because it is easy for customers to understand. Add attribute or relationship rules, such as access to a project or a region, where roles alone cannot express real needs. Many products combine roles with resource-level sharing.

Larger customers often do, but custom roles add complexity for you and for customer administrators. Start with a few well-designed default roles, learn which permissions customers ask to change, and offer custom roles on higher plans when demand is clear, with sensible guardrails.

On the server, for every request and every resource, in a shared authorisation layer. Hiding buttons in the interface improves usability but is not security. Broken access control is the top risk in the OWASP Top 10 for web applications.

SSO handles who the user is; your product decides what they can do. Many enterprise customers want group or role mapping from their identity provider and automatic provisioning and deprovisioning, often via SCIM. Make sure removed users lose access promptly.

Write automated tests for every role and resource type, including attempts to access other users', teams' and tenants' data and admin functions. Re-run them on every change. Permission bugs are easy to introduce and serious when they escape.

Get in touch

Have a project in mind?

Whether you're building a new digital product, improving an existing website, or looking to automate part of your business — let's talk.