ACCESS CONTROL MODELS

ReBAC vs. RBAC vs. ABAC: Which Access Control Model Do You Need?

Role-based, attribute-based and relationship-based access control answer the same question, "can this person do this?", in very different ways. Here is what each one is good at, where each one breaks, and why most modern applications end up combining them.

Last reviewed November 2026.

Short answer

RBAC grants access through roles and suits fixed, organization-wide permissions. ABAC decides from attributes of the user, resource and context, and suits rules about conditions such as time, location or risk. ReBAC computes access from relationships between people and objects, such as ownership, sharing, team membership and hierarchy, and suits products where access differs for every object. Most applications that have sharing, teams or AI agents need ReBAC at their core, with roles and attributes expressed inside it.

RBAC: role-based access control

Users are assigned roles, and roles carry permissions. An "editor" can edit; an "admin" can do everything. It is easy to understand and audit, which is why nearly every application starts here.

Where it shines: internal tools, admin consoles and any system where a person's permissions are the same across everything they touch.

Where it breaks: the moment access depends on a specific object. "Alice can edit this one document" or "managers can see their own team's reports" turns into a role per object or per team. That is role explosion, and it is how role tables grow to thousands of entries nobody can explain.

ABAC: attribute-based access control

Policies evaluate attributes at request time: the user's department and clearance, the resource's classification, the time of day, the device, the transaction amount. "Allow if the user is in Finance, the report is internal and the request comes from a managed device."

Where it shines: contextual and regulatory rules, risk-based decisions, and conditions that change per request.

Where it breaks: every attribute must be available when the decision is made, so applications end up gathering data before every check. Because the policy only sees what it is handed, it struggles to answer the reverse question, "what can this person see?", which lists, search and AI retrieval depend on. Auditing who can reach a given record also gets hard as policies multiply.

ReBAC: relationship-based access control

Access is computed from a graph of relationships: Alice is a member of Engineering, Engineering can view the Specs folder, the Roadmap is in Specs, so Alice can view the Roadmap. This is the model Google described in its Zanzibar paper for Drive, YouTube and Calendar.

Where it shines: sharing and collaboration, organizations and workspaces, folders and hierarchies, multi-tenant products, permission-aware search, and AI agents that must only reach what the person they work for can see. Because relationships are stored, ReBAC can answer both "can Alice see this?" and "what can Alice see?".

What it asks of you: your application records relationships as they change, and you model your product's rules in a schema. A dedicated database such as SpiceDB does the storage, computation and caching.

Side by side

RBACABACReBAC
Access comes fromRoles assigned to usersAttributes evaluated by policiesRelationships between people and objects
Per-object permissionsPoor: needs a role per objectPossible, if the attributes existNatural
Sharing with one person or teamAwkwardAwkwardBuilt in
Hierarchies (org charts, folders)Flattened into rolesEncoded as attributesFollowed directly
Context (time, amount, device)NoStrongSupported through conditions
"What can this person see?"CoarseHardDirect lookup
Explaining a decisionSimpleDepends on the policyThe relationship path

Policy engines such as Open Policy Agent and Cedar are often grouped with ABAC: they evaluate rules against the data you supply, and pair well with a relationship store when relationships are the data.

One rule, three models

"A manager can approve expenses submitted by anyone who reports to them, up to their own approval limit."

caveat within_limit(amount int, limit int) {
  amount <= limit
}

definition user {
  relation manager: user with within_limit
  permission management_chain = manager + manager->management_chain
}

definition expense {
  relation submitter: user
  permission approve = submitter->management_chain
}

Record that Ann manages Bob with a $5,000 limit, and a $1,200 expense from Bob is approvable by Ann while a $9,000 one is not. Reorganize the team and only one relationship changes.

Why most teams combine them

These models are not rivals. In SpiceDB, a role is simply a relationship ("Alice is an admin of this workspace"), attributes and context become caveats evaluated at check time, and relationships tie everything to the objects in your product. You get the clarity of roles, the precision of attributes and the per-object reach of relationships in one schema.

Frequently asked questions

What is the difference between RBAC and ReBAC?

RBAC grants permissions through roles that apply broadly. ReBAC computes permissions from relationships between people and specific objects, so it handles sharing, ownership and hierarchies without creating a role for every case. Roles can be expressed inside a ReBAC model.

Is ReBAC better than ABAC?

They solve different problems. ABAC is strongest for contextual conditions; ReBAC is strongest for per-object access and for answering what a person can see. Systems like SpiceDB combine them by attaching conditions, called caveats, to relationships.

What is Google Zanzibar?

Zanzibar is Google's internal relationship-based authorization system, described in a 2019 paper. It handles authorization for products such as Drive, YouTube and Calendar, and it inspired open-source systems such as SpiceDB.

How do I get started with ReBAC?

Model one application's objects and rules as a schema, record relationships as they change, and check permissions through an API. The SpiceDB quickstart walks through it in about ten minutes.

See relationship-based access control working

The From RBAC to ReBAC demo shows the difference in one column, and the industry demos run complete applications on SpiceDB.

Explore SpiceDB demos · Try the quickstart · Get a custom demo