We are currently revamping our website to improve user experience. During this time, some pages or links may not function as expected. We regret any inconvenience and appreciate your patience and continued support.

What is Relationship-Based Access Control?
How ReBAC Works & Best Practices

Relationship-based access control grants access from links between users and resources. Learn how ReBAC works and why AI agents need it.

What is Relationship-Based Access Control?

Relationship-based access control (ReBAC) is a security model that grants or denies access based on how users and resources are linked to each other. Instead of checking a user’s role or a list of attributes, it looks at the relationship between the person and the thing they want to reach.

Here’s a simple way to think of it. You share a Google Doc with your team. Anyone on the team can edit it, but someone outside the team can’t, even with the same job title. The permission isn’t based on role; it’s based on the link between the user and the file. That’s ReBAC in action.

This model first gained ground in social networks, where access depends on whether two users are friends, followers, or members of the same group. It has since spread far beyond social media. Google built Zanzibar, a global ReBAC system, to handle access for YouTube, Drive, Cloud, Maps and more, and companies like Airbnb and Carta have shifted to ReBAC-style systems as their access needs grew.

What makes relationship-based access control different? With RBAC, access follows the role. With ABAC, access follows the attributes. In ReBAC, access follows the relationship. If there’s a valid link between the user and the resource, like owner, member, or team lead, the system grants authorization; if not, it’s denied. This makes ReBAC a natural model for apps where data is shared, nested or owned by users.

ReBAC in One Line

Access is based on the link between the user and the resource, like owner, member, or team mate. If a valid path exists in the graph, the system grants access; if not, it’s denied. No roles are needed, just real connections.


How Relationship-Based Access Control Works

Every ReBAC system follows the same core flow. It uses a graph of nodes (users and resources) and edges (the links between them). Here’s how it plays out.

Step 1
Entities and Links Are Defined
Admins define the types of entities (users, teams, folders, files) and the types of links between them (owner, editor, viewer, member). These form the nodes and edges of a directed graph.
Step 2
Links Are Created
When a user creates a file, they become the “owner.” When they share it with a team, each team member gets a “viewer” or “editor” link. A graph store, such as Google Zanzibar, holds these links.
Step 3
User Requests Access
A user tries to open, edit, or delete a resource. The system picks up the request and checks the graph for a valid path between the user and the resource.
Step 4
Graph Is Traversed
The system walks the graph, checking direct links (user → file) and indirect links (user → team → folder → file). When a valid path exists that matches the required link type, the system grants access; if not, it’s denied.
Step 5
Event Is Logged
Every access check is recorded: who asked, what they asked for, which path was found (or not) and the result. These logs support audit, compliance and debugging.

This flow runs for every request. Because permissions are derived from real links, they update automatically when links change, like when a user joins a team or leaves a project, so ReBAC stays in sync with how people actually work.

How relationship-based access control works: store relationships, a request arrives, follow the graph, then allow or deny
Relationship-based access control grants access when the graph shows a valid relationship.

Common ReBAC Relationship Types

ReBAC supports many types of links. These are the common ones, and how each one drives access.

Ownership
The user who created the resource owns it and has full control. If you create a doc, you can read, edit, share and delete it. Ownership is the simplest and strongest link in ReBAC.
Parent-Child
Resources nested inside other resources inherit access: if you can access a folder, you can access every file in it. This cuts the need to set permissions on each item one by one.
Group Membership
Users who belong to a team or group share a common set of access rights. When a user joins the group, they get access, and when they leave, they lose it, with no manual changes needed.
Collaboration
A user is linked to a resource as a contributor, reviewer, or approver. This is common in project tools, code repos, and content platforms, where access depends on the user’s role in that specific project.
Talk to an ExpertSharing models getting complex? Let us design relationship-based access for your platform.

ReBAC vs RBAC vs ABAC

ReBAC vs RBAC and ABAC is a common comparison. Here’s how they compare.

Feature ReBAC RBAC ABAC
Access Based On User-resource links Job role User + context attributes
Granularity ✓ Per-resource ◐ Per-role ✓ Per-attribute
Handles Hierarchy ✓ Native, parent-child ◐ With role hierarchy ✕ Not built in
Dynamic Updates ✓ Auto, when links change ✕ Manual role swaps ◐ Semi-dynamic
Best For Collab tools, SaaS, social apps Mid-size, role-driven firms Complex, regulated setups
Real-World Example Google Drive, GitHub, Airbnb Active Directory, Azure AD AWS IAM policies

When to Choose ReBAC

Use RBAC when access is driven by job function. Use ABAC when you need fine-grained, attribute-based rules. Choose ReBAC when access depends on how users and resources are connected, like ownership, team membership or project links. It’s a strong fit for SaaS platforms, collaboration tools, multi-tenant apps and any system where data is shared, nested, or user-owned.


Pros and Cons of Relationship-Based Access Control

ReBAC is powerful for connected, user-driven apps, but it’s not without trade-offs. Here’s a clear view of both sides.

Advantages
Mirrors real-world connections: permissions follow how people actually work
Updates automatically: when links change, permissions change too
Handles hierarchy: parent-child links cascade access down the tree
Reduces human error: no need to set per-user or per-file rights by hand
Stops role explosion: one link model replaces dozens of roles
Limitations
Complex to set up: needs careful graph and link design up front
Can be heavy on compute: large graphs need fast traversal at scale
No context checks: can’t factor in time, location, or device on its own
Hard to debug: tracing a denied request through a deep graph is tough

Relationship-Based Access Control and AI

Relationship-based access control fits AI well, because the hardest AI access questions are about relationships: who an agent acts for, which documents a person can reach through their teams, and whether a chain of delegations is still valid.

“On Behalf Of” is a Relationship

An AI agent rarely acts for itself. It acts for a person, a team or another agent, and that link is exactly what a ReBAC graph stores. NIST’s February 2026 NCCoE concept paper on AI agent identity lists access delegation as a goal: link specific user identities to AI agents to support delegation controls and keep accountability. It also asks how to handle delegation of authority in “on behalf of” scenarios.

In a ReBAC model, you can write that link down as an edge, such as “agent X acts for user Y”, and let every check follow it. When the user loses access to a folder, the agent loses it too, with no separate cleanup.

Relationship-based access control and AI: agent acts for user, check each RAG document, long delegation chains and expiring logged edges
ReBAC can model who an AI agent acts for and check every document it retrieves.

Permission Checks for Retrieval-Augmented Generation

In retrieval-augmented generation, a model answers from documents found by search. ReBAC systems in the Zanzibar style answer a simple question very fast: can this user view this document? You can run that check on every retrieved document before it reaches the model, and drop the ones the user cannot see.

Keeping Delegation Chains Short

Agents can call other agents, so delegation can form long chains, and every extra hop makes it harder to tell who really approved an action. Keep chains short, give every edge an expiry, and log the full chain with each action. Our article on AI agent identity covers how to bring agents into your identity program.


Relationship-Based Access Control Best Practices

These ReBAC best practices help you get this model right.

Map your entities and links before you build. List every type of user, resource and link your app needs, and keep the link types simple and well-named. The whole system runs on this graph, so getting the design right from the start saves a lot of effort later.

Use your existing data. Many apps already store links, like who created a file, who’s on a team or who owns a project. Build your ReBAC graph on this data instead of creating a new one from scratch, and you get accurate, live permissions with less extra work.

Start with the three core link types. Ownership, group membership and parent-child links cover many use cases. Add more link types only when you need them. This keeps the graph lean and easy to manage.

Combine, Monitor, and Evolve

Layer ReBAC with RBAC or ABAC. ReBAC handles who is linked to what, but it can’t check context like time, location or device, so layer ABAC or RBAC on top for those checks. This hybrid model gives you the best of both: link-based access plus context-aware rules.

Monitor graph growth. As your app scales, the graph grows, with more nodes, edges, and paths to check. Applying least privilege at the link level keeps the graph lean. Keep an eye on graph size and query speed. Use a fast graph database and cache results where you can.

Audit and review links on a set schedule. Stale links are a risk, like a user who left a team but still has access. Run regular reviews to find and remove dead links, and log every access check for compliance.

ReBAC Checklist

Map all entity and link types before building. Use existing app data for your graph. Start with ownership, membership, and parent-child links. Layer RBAC or ABAC for context-aware checks. Use a fast graph database. Monitor graph size and query speed. Audit links quarterly. Log every access check for compliance.

Frequently Asked Questions About Relationship-Based Access Control

What is relationship-based access control?

Relationship-based access control (ReBAC) is a model that grants access based on the links between users and resources, like owner, member, editor, or team mate. If a valid link exists in the relationship graph, the system grants access; if not, it’s denied. It’s a natural model for apps where data is shared, nested or user-owned.

How does ReBAC differ from RBAC?

RBAC grants access based on a user’s job role, the same way for everyone in that role. ReBAC grants access based on the specific link between the user and the resource. In RBAC, every manager sees whatever the manager role allows; in ReBAC, a manager only sees data they’re linked to. ReBAC is more precise but more complex to set up.

What is Google Zanzibar?

Zanzibar is Google’s global ReBAC system. It handles access control for YouTube, Drive, Cloud, Maps, and more. Google published a paper on it in 2019, which sparked wide adoption of ReBAC across the industry. Many open-source and commercial ReBAC tools are now built on the Zanzibar model.

What is a relationship graph?

A relationship graph is a data structure made of nodes (users, files, teams, projects) and edges (links like owner, member, viewer). When a user requests access, the system walks the graph to find a valid path. If one exists, the system grants access. Graph databases like Neo4j or Amazon Neptune are commonly used to store and query these graphs fast.

Can ReBAC work with RBAC or ABAC?

Yes, and this is common. ReBAC handles link-based access (like who owns or belongs to what), but it can’t check context like time, device or location, so organizations layer ABAC or RBAC on top for those checks. This hybrid model combines links, roles and context.

Where is ReBAC commonly used?

ReBAC is used in SaaS platforms (multi-tenant access), collaborative tools (like Google Drive and GitHub), social networks (friend-based access), project management apps, content systems and cloud apps. It suits any app where data is shared, nested or user-owned.

Is ReBAC the same as ABAC?

Not quite. Many experts see ReBAC as a subset of ABAC, because links are a type of attribute. Though, they work differently. ABAC checks many attributes (like time, role and device), while ReBAC checks the specific link between the user and the resource. ReBAC is simpler for link-based needs, while ABAC is broader for context-aware rules.

How does ReBAC help with AI agents?

ReBAC can store “agent acts for user” as a relationship and follow it on every check. When the user loses access, the agent loses it too. NIST’s 2026 concept paper on agent identity lists access delegation, linking user identities to agents, as a goal.

Can ReBAC protect RAG systems?

Yes. Zanzibar-style ReBAC systems answer “can this user view this document?” quickly, so you can check every retrieved document before it reaches the model and drop anything the user is not allowed to see.

Conclusion: When to Use Relationship-Based Access Control

Relationship-based access control is a strong model for apps where access depends on how users and resources are linked. It mirrors how people actually work, through ownership, teams and projects, and it updates automatically when those links change.

It needs a solid base: map your entities and links well, use your existing data, start simple and layer RBAC or ABAC on top for context-aware checks.

To start, list your key entities and link types, build your graph on existing app data, set up the three core links (owner, member and parent-child), add a graph database and test at scale, and audit links every quarter.

Our SolutionIdentity and Access Management (IAM)

References

  1. Zanzibar: Google Research, Zanzibar: Google’s Consistent, Global Authorization System (2019)
  2. ReBAC on AWS: AWS Security Blog, Relationship-based access control with Amazon Verified Permissions and Amazon Neptune
  3. Agent delegation: NIST NCCoE, Identity and Authority of Software Agents (February 2026)
Stay Updated

Get the Latest Terms & Insights.

New encyclopedia terms, threat intelligence, and architecture decisions, by email.

Book a Consultation

A practice principal will contact you within 1 business day.

Thank you! A Signisys principal will be in touch within 1 business day.