There are plenty of reasons you might want to password protect your HelpDocs Knowledge Base. Maybe you're using it internally for staff training or perhaps your docs aren't quite ready for public viewing yet.
Setting Up a Shared Password
Adding password protection to your Knowledge Base is super simple. Here's how to set up a shared password that visitors will need to enter before accessing your docs:
- Head to Settings > Sign-in & access
- Under Who can read your help center, choose Anyone with the shared password
- Under Shared password enter a password of your choice
- Click Save changes
That's it! Now anyone visiting your site will need to enter the password before they can read any of your docs. Team members who sign in to HelpDocs get straight in, and readers who've entered the password stay in until they've gone 30 minutes without loading a page.
Choosing a different option under Who can read your help center later removes the shared password.

Using Team Passwords for Single Sign On
Team passwords work great when you need to set up docs that only users logged into your app can view.
Dropping the Cookie
The easiest approach is to load HelpDocs in an iframe on your dashboard when people log in. Include the team password in the query string to set a cookie that keeps them logged in.
Here's the basic URL structure:
https://<your-helpdocs>.helpdocs.io/_hd/team_sso?hd_team=<your-team-password>
Use this iframe snippet to get started:
<iframe src="https://<your-helpdocs>.helpdocs.io/_hd/team_sso?hd_team=<your-team-password>" width="0" height="0" style="display: none"></iframe>
You can customize several parameters:
Query Parameter | Description | Default Value |
hd_team | Your shared team password |
|
duration | How long (in days) users with this cookie stay logged in |
|
redirect_uri | Where to redirect users after dropping a cookie (usually not needed for iframes). Use a path or URL on your help center: anything else goes to your home page |
|
Passing User Data to Your Template
Want to identify users in your docs? You can pass user data in the URL query parameter when using an iframe or redirect.
The data should be JSON-encoded and sent as a hd_user_data query parameter:
https://helpdocs.your-custom-domain.com/_hd/team_sso?hd_team=password-here&hd_user_data={"name":"Taylor","user_id":"1"}