Quick answer: Redocly splits the problem into two steps. An identity provider handles authentication, proving who a user is, and role-based access control handles authorization, deciding which pages and APIs that user can read or edit. You set rules against path patterns or page front matter, map IdP groups to roles, and the portal hides content and navigation a user cannot reach. RBAC is an Enterprise capability; lighter plans only get a login toggle or a shared password.
Authentication vs authorization
These two words get swapped, and the difference drives the whole setup. Authentication answers "who is this person?" through a login flow. Redocly supports its own login or a corporate identity provider using OIDC or SAML 2, with SCIM available to sync groups and keep roles current as people join and leave.
Authorization answers "what may this person see?" After login, the portal reads the roles and team claims the IdP sends and matches them against your access rules. A user who is not signed in is redirected to the login page. A signed-in user who lacks the required team gets a 403 page rather than the content. SSO claims override any role set by hand, so the IdP stays the source of truth.
How content gets gated
In the Realm configuration, rules live under rbac.content and target path patterns with glob syntax. The wildcard pattern matches every page, while a pattern such as a team folder scopes rules to that team's API. The built-in authenticated team means every logged-in user, which is handy for a default read rule before you grant write access to specific teams.
You can also gate a single Markdown page from its front matter by adding an rbac block naming the team and its permission. Pages hidden this way do not generate sidebar links, and when every page in a group is hidden, the whole sidebar group disappears, so navigation stays consistent with access. The same mechanism can gate features, not just pages, for example limiting AI search to signed-in users.
The permission levels
Project roles stack from no access up to full control, and you grant the lowest level that does the job.
| Role | What it allows | Typical holder |
|---|---|---|
| none | No access | Users outside the team |
| read | View pages and files | Most readers and partners |
| triage | Read plus logs, issues, and discussions | Support and reviewers |
| write | Read and write, plus review comments | Active contributors |
| maintain | Most actions except owner-level settings | Team leads |
| admin | Full control of the project | Administrators |
Organization roles are separate and cover the wider organization, with names such as owner, member, and viewer, assigned through IdP groups or manually. A person's effective access is the combination of organization and project roles.
RBAC vs ABAC
RBAC groups permissions into roles and fits teams whose access is predictable and stable, such as reader versus editor versus admin. It is simple to reason about and supports least privilege, but role counts can grow as teams multiply.
ABAC decides from attributes, including user department, resource sensitivity, time, and location, so it handles fine-grained and changing rules, such as only letting a team see its own folder during business hours. Many teams run a hybrid: a small set of roles for broad tiers and attribute rules for the edge cases. If you can express a policy with a handful of stable roles, start with RBAC and add ABAC only when roles no longer map cleanly.
When you compare platforms, match the access model to what you actually run. A hosted docs product that protects a portal with a view password and expiry plus Google or GitHub OAuth, such as Powerduck, fits a small team that needs a gate without per-user roles; pick a platform with IdP integration and RBAC when you need group-based authorization and audit-ready provisioning. More platform differences are on the documentation platform comparison hub.
Frequently asked questions
Is RBAC available on every Redocly plan? No. Role-based access and corporate SSO are Enterprise and Enterprise+ features. Lower plans can require a login or restrict a project, but cannot map IdP groups to page-level roles.
What happens to a direct URL for a hidden page? A visitor who is not signed in is sent to login, and a signed-in user without the team sees a 403. Hiding the sidebar link alone is not the protection; the server enforces the rule on the page itself.
Do I need ABAC if I already have RBAC? Usually not at first. Start with stable roles and the least permission that works. Move to attribute rules only when you find yourself creating many near-identical roles or adding conditions such as time and location.
The bottom line
Redocly's model is clear once you separate the login step from the access step. Let the IdP prove identity through OIDC or SAML, keep groups synced with SCIM, and write RBAC rules against path patterns or front matter with the lowest permission that works. If your team needs group-based authorization, the Enterprise RBAC tier earns its cost; if a single gate is enough, a lighter password-and-OAuth setup avoids complexity you do not yet have.
Top comments (0)