Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
/Blog
/RBAC vs ABAC vs ReBAC: Which Access Control Model Fits?

RBAC vs ABAC vs ReBAC: Which Access Control Model Fits?

RBAC grants access by role, ABAC by attributes, ReBAC by relationships. How each works in a SaaS app, how they combine, and which providers support them.

Leonard HußkeLeonard Hußke•Nov 24, 2026•12 min read

RBAC vs ABAC vs ReBAC: role-based access control asks which role the user has, attribute-based access control checks attributes of the user, the resource and the request, and relationship-based access control follows the path from user to team to folder to document
On this page
  1. One question, three answers
  2. Role-based access control gives permissions through roles
  3. Attribute-based access control checks attributes at request time
  4. Relationship-based access control follows relationships, like Google Zanzibar
  5. RBAC vs ABAC vs ReBAC compared
  6. Most apps combine the models
  7. Fine-grained authorization runs in OpenFGA, Cedar, OPA, or Ory Keto
  8. Which auth providers support roles and fine-grained authorization
  9. Pick the model by what your app shares
  10. FAQ

RBAC vs ABAC comes down to what the access check looks at. Role-based access control (RBAC) looks at the user's role. Attribute-based access control (ABAC) looks at attributes of the user, the resource, and the request. Relationship-based access control (ReBAC) looks at how the user is connected to the resource, through teams, folders, and sharing. Start with RBAC. Add ReBAC once users share individual documents or projects with each other. Add ABAC conditions when the answer depends on context, such as the user's department, the document's status, or whether the user signed in with MFA.

  • RBAC gives each user one or more roles, and each role carries a set of permissions. NIST formalized it in 1992, and it became an American National Standard in 2004.
  • ABAC evaluates policies against attributes at request time. NIST described it in SP 800-162 in 2014. XACML and Cedar are policy languages for it.
  • ReBAC stores relationships such as "Maria is a member of Marketing" and "Marketing can edit this folder", then follows them. Google's Zanzibar paper from 2019 made it popular, and OpenFGA is an open-source system built on it.
  • 31 of the 37 auth providers in our directory support role management. Fine-grained authorization is rarer. We found it in eight providers' docs, often as a separate service.

One question, three answers

All three models answer the same question: may this user perform this action on this resource? They differ in the data they use to answer it.

Take a SaaS app for documents. Each customer has a workspace. A workspace has teams, teams own folders, and folders hold documents. Maria works in marketing and wants to edit the document "Q3 roadmap" in the folder "Campaigns".

  • RBAC checks that Maria has the Editor role in the workspace, and that Editors may edit documents.
  • ABAC checks a policy against attributes. Maria's department is Marketing, the document belongs to Marketing, the document is not archived, and Maria signed in with MFA.
  • ReBAC follows a path. Maria is a member of the Marketing team, the team can edit the Campaigns folder, and the folder contains the Q3 roadmap.

Can Maria edit the Q3 roadmap? RBAC checks her role: Maria has the Editor role, and Editors can edit documents, so the answer is yes, for every document in the workspace. ABAC checks attributes: Maria's department matches the document's department, she signed in with MFA, and the document is not archived, so the policy permits it. ReBAC follows relationships: Maria is a member of the Marketing team, the team is an editor of the Campaigns folder, and the folder is the parent of the Q3 roadmap, so she is an editor of the document.

All three say yes, but they mean different things. The RBAC answer lets Maria edit every document in the workspace. The ABAC and ReBAC answers apply to this one document.

Role-based access control gives permissions through roles

In RBAC, you never give permissions to users directly. You define roles, give each role a set of permissions, and assign roles to users. Auth0's docs describe a role as "a collection of permissions that you can apply to users".

RBAC is the oldest of the three models in its current form. NIST says that RBAC was "formalized in 1992 by David Ferraiolo and Rick Kuhn". The NIST model became American National Standard 359-2004, and INCITS revised it in 2012. A 2010 economic study for NIST found that most users in enterprises with 500 or more employees were already using RBAC. The study estimated that NIST's RBAC research had saved industry $1.1 billion.

The standard has four components. NIST's FAQ says that "Core RBAC is required in any RBAC system". The other three are optional.

  1. Core RBAC. Users get roles, and roles get permissions. A user can hold several roles.
  2. Hierarchical RBAC. Roles inherit from other roles. An Admin has every permission of an Editor, plus more.
  3. Static separation of duty. Some roles exclude each other at assignment. The same person can't hold both "submit expense" and "approve expense".
  4. Dynamic separation of duty. Some roles exclude each other within one session. A user may hold both roles but can't activate both at once.

For the document app, the roles might look like this:

PermissionOwnerAdminEditorViewer
View documents
Yes
Yes
Yes
Yes
Create and edit documents
Yes
Yes
Yes
No
Invite members
Yes
Yes
No
No
Manage billing
Yes
No
No
No
Delete the workspace
Yes
No
No
No

RBAC is easy to explain to customers, and auth providers can carry it in the token. Auth0, for example, has a setting that adds all of the user's permissions to the access token. Your API then checks a permission such as edit:documents without a database call.

RBAC fails when access depends on the resource. "Maria can edit the Q3 roadmap but not the budget" is not a role. Teams then create roles such as "Editor of Campaigns folder" for each case, and the number of roles grows with the number of resources. This problem is called role explosion. It is a common reason to add ReBAC or ABAC.

Attribute-based access control checks attributes at request time

NIST's ABAC guide, SP 800-162, defines ABAC as a method where the system evaluates "attributes associated with the subject, object, requested operations, and, in some cases, environment conditions" against policy. NIST published the guide in January 2014.

An ABAC policy for the document app could say that users may edit documents of their own department, only after MFA, and never once a document is archived. Here is that policy in Cedar, the policy language that AWS released as open source in 2023:

permit (
  principal,
  action == Action::"edit",
  resource
)
when {
  principal.department == resource.department &&
  context.authentication.usedMFA
}
unless {
  resource.archived
};

Cedar denies everything by default. Its docs say that an explicit deny "always overrides any Allow from other policies". A forbid policy, for example for documents under legal hold, wins over any permit.

ABAC has an older standard too. OASIS approved XACML 3.0, an XML policy language, on 22 January 2013. XACML named the parts that most authorization systems still use:

  • The policy decision point (PDP) evaluates policy and returns a decision.
  • The policy enforcement point (PEP) is your API or app. It asks the PDP and enforces the answer.
  • The policy information point (PIP) supplies attribute values, such as the user's department.
  • The policy administration point (PAP) is where people write and manage policies.

ABAC handles context that the other models can't: time of day, IP range, device posture, the customer's plan, or a risk score from your auth provider. The cost is visibility. A policy decides at request time, so "who can open this document?" has no stored answer. You find out by evaluating the policy for each user. ABAC also depends on clean attribute data. A wrong department field grants the wrong access.

Relationship-based access control follows relationships, like Google Zanzibar

ReBAC stores facts of the form "user, relation, object" and derives permissions from them. Google described its system in the paper Zanzibar: Google's Consistent, Global Authorization System at USENIX ATC 2019. Zanzibar stores "trillions of access control lists" and handles "millions of authorization requests per second" for services including Calendar, Cloud, Drive, Maps, Photos, and YouTube. Over three years in production, it kept 95th-percentile latency under 10 milliseconds and availability above 99.999%.

OpenFGA is an open-source authorization system for this model. It describes itself as "Inspired by Google's Zanzibar". A group of Okta employees built it, and it is the base of Auth0's commercial Auth0 FGA. The CNCF accepted OpenFGA in September 2022 and moved it to the Incubating level in October 2025.

The document app's model in OpenFGA's modeling language looks like this:

model
  schema 1.1

type user

type team
  relations
    define member: [user]

type folder
  relations
    define editor: [user, team#member]
    define viewer: [user, team#member] or editor

type document
  relations
    define parent: [folder]
    define owner: [user]
    define editor: [user, team#member] or owner or editor from parent
    define viewer: [user, team#member] or editor or viewer from parent

Your app writes a relationship tuple whenever something changes in the app. Three tuples describe Maria's case:

UserRelationObject
user:mariamemberteam:marketing
team:marketing#membereditorfolder:campaigns
folder:campaignsparentdocument:q3-roadmap

A check for user:maria, editor, document:q3-roadmap returns { "allowed": true }. Nobody wrote a rule for Maria and the roadmap. The model derives it from team membership and the folder.

ReBAC fits apps where users share things: documents, projects, repositories, or customer accounts with nested teams. Stored tuples also answer the audit question that ABAC can't. OpenFGA's ListUsers endpoint lists the users with a relation to an object, and ListObjects lists the objects a user can reach.

The cost is synchronization. Every time your app creates a folder, moves a document, or changes a team, it must write the matching tuple. A tuple that is missing or out of date denies access that should exist, or keeps access that should be gone.

RBAC vs ABAC vs ReBAC compared

RBACABACReBAC
Decides byThe user's rolesAttributes of the user, the resource, the action, and the contextRelationships between users and objects
Example ruleEditors can edit documentsUsers can edit documents of their own department after MFAMembers of a team that edits a folder can edit its documents
ReferenceNIST RBAC model, INCITS 359NIST SP 800-162, XACML 3.0Google Zanzibar paper, 2019
Open-source enginesBuilt into most auth providersCedar, OPA, KeycloakOpenFGA, Ory Keto
Access to a single document
No
Yes
Yes
Inherited access through folders and teams
No
No
Yes
Uses request context such as time, IP, or MFA
No
Yes
With conditions in OpenFGA
Stored answer to "who can see this?"
Yes
No
Yes
Typical problemRole explosionPolicies that are hard to auditKeeping tuples in sync with the app
FitsAdmin areas, internal tools, B2B apps with a few fixed rolesRegulated data, rules that depend on contextCollaboration and sharing, nested resources

Most apps combine the models

The three models are not alternatives in practice. OpenFGA, Cedar, and Keycloak each support more than one of them.

  • ReBAC can express RBAC. A role is a relation between a user and an organization. OpenFGA's docs say that ReBAC "allows developers to easily implement Role-Based Access Control".
  • ReBAC can add attributes. OpenFGA has conditional relationship tuples. A condition is an expression in Google's Common Expression Language (CEL), and the tuple counts only when the condition is true. You can use one to grant access only before an expiry date, for example.
  • ABAC engines handle roles. Cedar's docs name RBAC and ABAC as the models it supports. A Cedar policy can check principal in Group::"editors" and an attribute in the same rule.

A common setup for a B2B SaaS app has three layers.

  1. Roles from your auth provider. Each organization gets roles such as Admin and Member. The provider puts them into the access token, and your API rejects requests that lack the basic permission.
  2. Relationships in an FGA service. Sharing, team folders, and per-document access live in OpenFGA or a hosted version of it.
  3. Conditions where context matters. Rules such as "only from the customer's IP range" or "not after the contract ends" go into conditions or Cedar policies.

The OpenID Foundation approved the AuthZEN Authorization API 1.0 as a final specification in January 2026. The API defines how a policy enforcement point asks a policy decision point for a decision. A request has a subject, an action, a resource, and an optional context. If your engine supports AuthZEN, you can replace it later without rewriting the checks in your app.

Fine-grained authorization runs in OpenFGA, Cedar, OPA, or Ory Keto

Fine-grained authorization (FGA) means access decisions per resource instead of per role. Engines for it run next to your auth provider, not inside it. They take the user's identity from the token your provider issues, so any of them works with any provider.

EngineModelPolicy formatOriginLicenseStatus
OpenFGAReBAC, with conditionsModeling language and relationship tuplesOkta, based on ZanzibarApache 2.0CNCF Incubating since 2025
Ory KetoReBACOry Permission Language, a subset of TypeScriptOry, based on ZanzibarApache 2.0Part of Ory's open-source stack
CedarRBAC and ABACCedar policiesAWS, open source since 2023Apache 2.0CNCF Sandbox since 2025
Open Policy Agent (OPA)ABAC and general policyRegoCNCF project since 2018Apache 2.0CNCF Graduated in 2021

Pick by the question your app asks most often.

  • If the question is "who shares what with whom", pick OpenFGA or Ory Keto. Auth0 FGA is OpenFGA as a hosted service.
  • If the question is "is this request allowed under these conditions", pick Cedar. Amazon Verified Permissions runs Cedar as a managed AWS service.
  • If you also want one policy engine for Kubernetes, infrastructure, and APIs, pick OPA. OPA describes itself as "a general-purpose policy engine that unifies policy enforcement across the stack".

Which auth providers support roles and fine-grained authorization

Most auth providers manage roles. Our directory tracks 55 features across 37 providers, and the chart shows the ones that feed authorization.

Authorization features across 37 auth providers

Number of providers in the Auth0Alternatives directory that support each feature, November 2026

  • Custom attributes34
  • Role management31
  • Organizations29
  • Roles in orgs28
  • Token restrictions21

Source: Auth0Alternatives listings

Show data
Providers (of 37)
Custom attributes34
Role management31
Organizations29
Roles in orgs28
Token restrictions21

Download this chart

You're welcome to use it in articles, reports and presentations. In return, please credit Auth0Alternativeswith a link to the article it comes from.

Attribution to use with the chart

Source: <a href="https://www.auth0alternatives.com/blog/rbac-vs-abac">Auth0Alternatives</a> by Auth0Alternatives

31 providers support role management. 28 of them also support organizations, which B2B apps need for roles per customer. 34 store custom attributes on users, the raw data for ABAC rules. Of the 15 open-source providers, 11 manage roles. Of the 22 closed-source providers, 20 do. The six without role management are Auth.js, Authelia, Authsignal, Hanko, Magic, and Sooauth. Hanko lists it on its roadmap.

Fine-grained authorization is less common. We found it in the docs of these eight providers:

ProviderRole managementFine-grained authorizationOpen sourceSelf-hosted
Auth0
Yes
Auth0 FGA, a hosted ReBAC service built on OpenFGA
No
No
WorkOS
Yes
WorkOS FGA, a resource hierarchy on top of its RBAC
No
No
Descope
Yes
ReBAC and ABAC in its FGA service
No
No
Ory
Yes
Ory Permissions, built on Ory Keto
Yes
Yes
Frontegg
Yes
ReBAC in its Entitlements engine
No
No
Authress
Yes
Role- and resource-based permissions with nested resources
No
No
Keycloak
Yes
Authorization Services with ABAC, RBAC, time-based, and JavaScript policies
Yes
Yes
Amazon Cognito
Yes
Through Amazon Verified Permissions, a separate AWS service that uses Cedar
No
No

Two details matter when you compare them.

  • WorkOS FGA extends roles, it doesn't replace them. WorkOS says that FGA "keeps the mental model of RBAC" and adds "hierarchical, resource-scoped access control". Existing roles keep working.
  • Ory and Keycloak are the self-hosted options. Ory Keto calls itself "the first open-source implementation" of the Zanzibar design. Keycloak's Authorization Services run inside the Keycloak server. To compare the two, see Ory vs Keycloak.

If roles are enough for now, most providers in the directory handle them. Examples are Clerk, Zitadel, Logto, Kinde, PropelAuth, Stytch, and Better Auth. Supabase Auth takes a different route. You define roles in your own table and enforce them with Postgres row level security. When you outgrow roles, you can add OpenFGA or Cedar next to any of them.

Pick the model by what your app shares

Your appModelWhere to run it
A few fixed roles per customer, such as Admin, Member, and BillingRBACYour auth provider's roles and organizations
Users share documents, projects, or folders with each otherReBAC, with roles as relationsOpenFGA, Auth0 FGA, WorkOS FGA, or Ory Keto
Rules depend on context: region, plan, MFA, time, or record statusABACCedar, Amazon Verified Permissions, or OPA
Regulated data with sharing and context rulesReBAC plus ABAC conditionsOpenFGA with conditions, or Cedar with groups and attributes
An internal admin toolRBACYour auth provider's roles

Authorization starts after authentication. The user must sign in before any of these checks run. For the difference between the two, read authentication vs authorization. For the protocols that carry roles and identity to your API, read SAML vs OIDC vs OAuth. If you build for business customers, the B2B providers in the directory cover roles per organization, SSO, and SCIM.

FAQ

RBAC grants access based on the roles a user holds. ABAC grants access by evaluating a policy against attributes of the user, the resource, the action, and the environment. RBAC answers "is this user an Editor?". ABAC answers "is this user in the document's department, signed in with MFA, and working on a document that isn't archived?".

Core RBAC, hierarchical RBAC, static separation of duty, and dynamic separation of duty. Core RBAC is required, and the other three are optional. The standard was adopted as ANSI INCITS 359-2004 and revised in 2012. The 2000 paper that led to it described four levels instead: flat, hierarchical, constrained, and symmetric RBAC.

ReBAC handles more cases, but it costs more to run. You need an authorization service and you must keep its relationship tuples in sync with your app. If your users never share individual resources, RBAC is enough. ReBAC can express roles as relations, so you can move from RBAC to ReBAC later without changing what users see.

Fine-grained authorization means deciding access per resource, for example per document, instead of per role. ReBAC and ABAC are the two common ways to do it. OpenFGA, Ory Keto, Cedar, and OPA are open-source engines for it, and Auth0, WorkOS, and Descope sell hosted versions.

OpenFGA is an open-source authorization system based on Google's Zanzibar. You describe types and relations in a modeling language, write relationship tuples from your app, and call its Check endpoint. Okta employees built it, it is licensed under Apache 2.0, and it has been a CNCF Incubating project since October 2025. Auth0 FGA is the hosted version.

Use OpenFGA when access depends on relationships, such as sharing, teams, and folders. Use OPA when you need general policy rules over request data, or one policy engine for APIs and infrastructure. OPA policies are written in Rego and OpenFGA models are relationship graphs. Some teams run both.

Yes, and most systems do. Roles handle the coarse checks, and attribute conditions narrow them. Cedar policies can check group membership and attributes in one rule, and Keycloak's Authorization Services combine role-based, time-based, and custom policies.

Share:

On this page

  1. One question, three answers
  2. Role-based access control gives permissions through roles
  3. Attribute-based access control checks attributes at request time
  4. Relationship-based access control follows relationships, like Google Zanzibar
  5. RBAC vs ABAC vs ReBAC compared
  6. Most apps combine the models
  7. Fine-grained authorization runs in OpenFGA, Cedar, OPA, or Ory Keto
  8. Which auth providers support roles and fine-grained authorization
  9. Pick the model by what your app shares
  10. FAQ
Favicon

 

  
 
Subscribe to our newsletter

Join other CTOs and engineers to get the latest news and to keep your apps secure.

Browse:Open SourceSelf-hostedB2BB2CFeaturesComplianceData Residency
Quick Links:Contact UsSubmitBlogAbout Us
Built withDirstarter
Auth0Alternatives
FeaturesOpen SourceSelf-hostedB2BB2C
SubmitSign In

Discover

LatestOpen SourceSelf-hostedB2BB2CAll providers

AI & Agents

MCP AuthorizationAgent IdentitiesToken VaultAI Agent DetectionDevice LoginAll features

Data Residency

🇪🇺European Union🇺🇸United States🇬🇧United Kingdom🇨🇭Switzerland🇦🇺AustraliaAll regions

Compliance

SOC2GDPRISO 27001HIPAAPCI DSSAll compliance
Submit
Ad
Favicon of DescopeDescope
Drag & Drop Your Auth. Add secure, frictionless authentication journeys for your customers, partners, and AI agents.
Visit Descope
Ad
Favicon of AuthsignalAuthsignal
You might not need to replace your auth provider. Add passkeys, adaptive MFA, and a no-code orchestration engine on top of the identity stack you already run.
Visit Authsignal
Popular Auth0 Comparisons:
Engity vs Auth0
Amazon Cognito vs Auth0
Entra External ID vs Auth0
Firebase Authentication vs Auth0
Clerk vs Auth0
WorkOS vs Auth0
Frontegg vs Auth0
FusionAuth vs Auth0
Supabase Auth vs Auth0
Auth.js vs Auth0
Ory vs Auth0
SuperTokens vs Auth0
Logto vs Auth0
Hanko vs Auth0
Hexclave vs Auth0
Authress vs Auth0
Popular WorkOS Comparisons:
Engity vs WorkOS
Auth0 vs WorkOS
Amazon Cognito vs WorkOS
Entra External ID vs WorkOS
Firebase Authentication vs WorkOS
Clerk vs WorkOS
Frontegg vs WorkOS
FusionAuth vs WorkOS
Supabase Auth vs WorkOS
Auth.js vs WorkOS
Ory vs WorkOS
SuperTokens vs WorkOS
Logto vs WorkOS
Hanko vs WorkOS
Hexclave vs WorkOS
Authress vs WorkOS