CustomizeAccess Control
Customize

Access Control

Control who can view your documentation with flexible access control options.

Overview

Control who can view your documentation by configuring access control settings. You can make your documentation public, require authentication for all pages, or configure partial access control where some pages are public and others are protected.

Access control is configured in the dashboard under Settings → Access Control and takes effect after you publish (or re-publish) your documentation.

Access modes

Documentation.AI supports three access modes:

  • Public: Anyone can access your documentation. No authentication required.

  • Private: All pages require authentication to access.

  • Partial: Make some pages public and restrict access to others.

Authentication methods

Documentation.AI offers three authentication methods to protect your documentation:

Password authentication requires a Standard plan or higher. JWT and OAuth 2.0 authentication require an Enterprise plan or higher.

Password authentication is available on Standard plans or higher.

Password authentication provides simple access control using a shared password. It does not support user-level personalization or individual user tracking.

Set up

Choose an access mode

In your dashboard, go to Settings → Access Control and select one of:

  • Private to protect the entire site

  • Partial to make some pages public and protect the rest

Set a password

In Authentication Method, choose Password, then set a strong password.

  • If you already have a password configured, leaving the password field blank keeps the current password.

  • Use Clear password only if you intend to remove password protection.

Re-publish to apply changes

After saving your access control settings, re-publish your documentation so the deployed site uses the updated configuration.

Distribute access

Securely share the docs URL and password with authorized users.

Example

You host documentation at docs.example.com and want basic access control without managing individual user accounts. Use Password authentication and share the password with authorized teammates.

Partial access control

In Partial mode, Documentation.AI determines whether a page is Public or Protected using the public flag on navigation nodes. You can configure this using either the Web Editor or the Code Editor.

Inheritance rules

  • Default: If no public flag is set anywhere, pages are treated as Protected in partial mode.

  • Closest wins: The closest (nearest) explicit public flag in the navigation tree determines the effective visibility for that node and its subtree.

  • Explicit override: A child node can override its parent by setting its own public flag.

Visibility values

  • Inherit: Do not set public on the node (the effective value comes from the nearest parent that has public).

  • Public: public: true

  • Protected: public: false

Configure public pages in partial access control mode

You can make specific pages or groups public in two ways:

Use the Web Editor to visually configure which pages are public or protected.

Open the Web Editor

Navigate to your project dashboard and click on** Editor** to open the visual editor.

Navigate to the page or group

In the navigation panel, find the page or group you want to make public or protected.

Configure visibility

In the navigation, each page and group shows an icon (🌐,🔒) that indicates its visibility state. Click on the icon and change status to

  • Public to make it accessible without authentication

  • Protected to require authentication

  • Inherit to use the parent's setting

Publish changes

After configuring visibility for your pages, publish your documentation to apply the changes.

Changes made in the Web Editor are automatically synced to your documentation.json file.

Was this page helpful?
Built with Documentation.AI

Last updated 2 weeks ago