Modulario by AMCEF
Demo
📖 Glossary · Security and compliance

ReBAC

Relationship-Based Access Control

An authorisation model based on relationships between objects — access is derived from which teams and projects a user belongs to.

What is ReBAC?

ReBAC (Relationship-Based Access Control) is an authorisation model in which permissions are derived from relationships between objects in the system, rather than from directly assigned roles. Conceptually it originates from Google Zanzibar — Google’s internal authorisation system published in 2019, which manages permissions across services such as Drive, YouTube, and Cloud Platform. Open-source implementations (OpenFGA, SpiceDB, Ory Keto) have made this model available to other companies as well.

In ReBAC, permissions are expressed as “subject has relationship X to object Y”. Example:

  • user:anna is member of team:project-acme
  • team:project-acme is owner of document:contract-2025
  • Rule: if a user is a member of the team that owns the document → the user can read the document

Advantages over RBAC:

  • Hierarchies and organisations — access inherits from parent-child relationships
  • Sharing between users — typical SaaS scenario (“share document with person X”)
  • Fine granularity without a role explosion

Disadvantage: greater technical complexity, requiring a specialised authorisation service.

When it is used

ReBAC is suitable for:

  • Multi-tenant SaaS with complex customer hierarchies
  • Collaboration tools (documents, projects, teams)
  • Microservice architectures where one authorisation layer serves many services
  • Scenarios with dynamic sharing between users

See the Security page and the API page.

In Modulario

Modulario uses the ReBAC layer for fine-grained permissions — a project manager sees only the teams they belong to; a salesperson only the customers assigned to them; an external consultant only the documents shared for a specific project. Configuration is via the Records module or API.

Multi-entity companies use ReBAC to separate subsidiaries — each subsidiary has its own workspace, a central auditor can see data for all entities via a “group auditor” relationship, but a local accountant only sees their own entity. Performance-wise, Modulario can perform authorisation checks in milliseconds even with tens of millions of relations.

Implementing ReBAC in your company?

Modulario covers most B2B processes modularly — deploy only what you need now and grow gradually. Book a free consultation.

Dávid Bělousov

Dávid Bělousov

Sales Director

+421 902 826 802 sales@amcef.com
Book a consultation