Create a ReBAC Policy
Setting up Relationship-Based Access Control (ReBAC) policies may seem complex, but with Permit, it's a simple and intuitive process. This step-by-step guide will walk you through configuring and enforcing ReBAC policies using the Permit dashboard.
Defining our ReBAC Policy - Schema
In this guide, we'll set up ReBAC permissions for a dashboarding system with two resource types: Dashboards (parent) and
Widgets (child). Users can have roles — Owner, Viewer, or Analyst/Editor — each with specific permissions.
The access to a Dashboard resource will automatically includes permissions for its associated Widgets.
To configure the ReBAC policy schema, we'll start by defining key resources.
For this example, we'll define two resources: Dashboard and Widget, each with specific actions and resource roles. These
resources form the foundation of the ReBAC policy structure, ensuring proper access control.
Step 1: Create Resources and their Roles
Start by navigating to the Resources section in the Permit dashboard - Policy > Resources. Once there, locate the Add Resource
button to begin creating your first resource. This is the first step in setting up your ReBAC policy, where each resource will
be configured with relevant permissions and roles.