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.
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.
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.

Common ReBAC Relationship Types
ReBAC supports many types of links. These are the common ones, and how each one drives access.
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.
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.

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.
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?
How does ReBAC differ from RBAC?
What is Google Zanzibar?
What is a relationship graph?
Can ReBAC work with RBAC or ABAC?
Where is ReBAC commonly used?
Is ReBAC the same as ABAC?
How does ReBAC help with AI agents?
Can ReBAC protect RAG systems?
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
- Zanzibar: Google Research, Zanzibar: Google’s Consistent, Global Authorization System (2019)
- ReBAC on AWS: AWS Security Blog, Relationship-based access control with Amazon Verified Permissions and Amazon Neptune
- Agent delegation: NIST NCCoE, Identity and Authority of Software Agents (February 2026)
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
