Identity and access ReBAC 3 min read

What is ReBAC?

You’re on the platform team and can write code. Should that mean you can write to every repository in the company?

  1. Access depends on a connection to the resource

    A role can say you’re a developer who may write code. Relationship-based access control (ReBAC) adds the missing “where”: are you a member of the team that owns this repository, or a collaborator on this particular project?

    The service checks links between you, a group, and the resource. If you belong to the platform team and that team has writer access to the deployment repository, the request can pass there.

    A developer is linked to the platform team, and the platform team is linked to the deploy repository as a writer. The authorization service follows those relationships to decide whether to allow a code update.

    The request is allowed because the relationship path reaches this repository.

    In short ReBAC checks who is connected to this particular resource, and how.

  2. Combine the relationship with the action

    The service still checks what the request is trying to do. A relationship might let a user view a document because they are on its project team, while only the document owner can delete it.

    This makes it practical to express sharing: you can view a folder shared with you, or edit an issue in a repository where your team is a maintainer.

    In short A relationship scopes access; a permission names the action.

  3. Relationships need careful updates

    When someone leaves a team or a share is removed, the system must update the relationship data and make sure authorization checks see the change. Caches and delayed updates can leave access active longer than expected.

    Keep the rule understandable: identify the relationship path that grants access, and test the allow and deny cases at the resource boundary.

    In short A correct rule depends on accurate, current relationships.

What ReBAC doesn’t guarantee

A relationship model doesn’t automatically make an access decision safe. The service still needs to check every relevant request, define which relationship paths grant which actions, and handle stale or missing relationship data.

It also doesn’t remove the need for least privilege: a team relationship that grants broad access to every repository may still be too powerful.

Keep this

A relationship can decide which specific resource a permission applies to.

Check both the action and the resource relationship. “Can write” is incomplete unless the request also proves which repository the person can write to.
Role
What actions someone may perform.
Relationship
Which resource or group connects them to that action.
Check
Follow the relevant relationships for this request.
Use both
A role can grant action permission; a relationship can scope its target.

Questions worth carrying

Does ReBAC replace roles?

Not necessarily. Many systems combine them: a role or permission says what actions are possible, while relationships determine which objects those actions apply to.

What happens when a team member leaves?

Access should change when the membership relationship is removed. Systems also need to account for cached decisions and make sure relationship updates take effect in the expected time.

Sources

Last reviewed 20 November 2026.

Next byte · Access control What is privileged access management?