Restricting access to docs by login or user role
Restrict docs so only logged-in users or users with specific roles can read them. Use access control for customer-only guides, partner docs or internal team handbooks.
📷 Image placeholder: a restricted doc showing a login prompt to a visitor who isn't signed in.
Choose what to restrict
| Level | Restricts | Use it for |
|---|---|---|
| Knowledge base | Every category and doc inside it | A complete internal handbook |
| Category | Every doc in the category | A customers-only section |
| Doc | One doc | A single sensitive guide |
Choose who can see it
| Option | Who can read |
|---|---|
| Everyone | All visitors (default) |
| Logged-in users | Anyone signed in to your site |
| Specific roles | Only users with the roles you choose, such as Customer or Editor |
Restrict a doc
Open the doc
Open the doc in the editor.
Open the access settings
In the Settings sidebar, open the Access panel.
📷 Image placeholder: the Access panel in the doc Settings sidebar.
Choose who can read it
Choose Logged-in users or Specific roles. If you choose specific roles, tick each role that should have access.
Update the doc
Click Update.
Restrict a category or knowledge base
Edit the category or knowledge base
Go to PinkDocs → Categories or PinkDocs → Knowledge Bases and click Edit.
Set access
Choose who can read it in the Access setting.
Save
Click Update. Every doc inside follows this setting.
What restricted visitors see
- Restricted docs are hidden from the sidebar, category pages and live search.
- If a visitor opens a restricted doc's link, they see a login prompt instead of the content.
- The AI assistant only answers from docs the current visitor is allowed to read.
Common questions
Yes, if your membership plugin assigns WordPress roles. Choose those roles in the access settings.
No. Restricted content isn't shown to visitors who aren't signed in, including search engine crawlers.
