Skip to content

docs: document RBAC restriction badge on page headers#5980

Open
fern-api[bot] wants to merge 6 commits into
mainfrom
devin/1782431136-rbac-restriction-badge-docs
Open

docs: document RBAC restriction badge on page headers#5980
fern-api[bot] wants to merge 6 commits into
mainfrom
devin/1782431136-rbac-restriction-badge-docs

Conversation

@fern-api

@fern-api fern-api Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a "Restriction badge" section to the RBAC docs page documenting the new lock-icon badge that appears next to page titles on restricted pages (shipped in fern-platform#12065).

The badge shows automatically on all restricted page types (markdown pages and API reference endpoints):

  • Pages without viewers: tooltip says "Only visible to authenticated users."
  • Pages with viewers: tooltip lists the role names

Includes a screenshot of the badge. No configuration required — the badge renders whenever RBAC or authentication is active.

Requested by: Fern Support

Co-Authored-By: bot_apk <apk@cognition.ai>
@fern-api fern-api Bot requested a review from devalog as a code owner June 25, 2026 23:47
@fern-api

fern-api Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Requested by: devin.logan
Slack thread: View conversation

- **Authenticated-only pages** (no `viewers` specified): "Only visible to authenticated users."
- **Role-restricted pages** (`viewers` specified): lists the role names that can view the page.

The badge appears automatically on all restricted page types, including API reference endpoints.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[FernStyles.Reject] Use 'API Reference' instead of 'API reference'.

@github-actions

Copy link
Copy Markdown
Contributor


Use it for partner docs, beta features, tiered pricing content, and internal resources. You can combine it with [API key injection](/learn/docs/authentication/features/api-key-injection) when using JWT or OAuth authentication. When RBAC is configured, [Ask Fern](/learn/docs/ai-features/ask-fern/overview) automatically respects these permissions. By default, restricted pages are completely hidden from unauthorized users — if you'd like them to be visible but locked instead, let Fern know during setup.

In locked mode, restricted pages display a lock icon next to the page title, and hovering over it shows which roles have access. The badge appears automatically on all restricted page types, including API reference endpoints.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[FernStyles.Reject] Use 'API Reference' instead of 'API reference'.

Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
@devalog devalog requested a review from kgowru June 27, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant