By default, readers who are logged into your knowledge base site can change their own password via the profile dropdown in the site header. In some scenarios, such as when passwords are managed centrally by an administrator, when SSO is used for authentication, or when you want to enforce a specific password policy, you may want to remove this option from the reader-facing interface entirely. You can hide the Change password option using a CSS snippet.
NOTEThis change applies to all readers across your knowledge base site. It cannot be scoped to specific reader groups or individual accounts.
When to use this
Use this customization when you want to:
- Prevent readers from changing their own passwords, for example, when passwords are centrally managed or governed by a password policy.
- Remove the option for knowledge bases where authentication is handled through SSO, in which case the Change password option is irrelevant to readers.
- Simplify the reader profile dropdown by removing options that do not apply to your authentication setup.
Before you begin
- You need access to Settings () > Knowledge base site > Site customization > Custom CSS & JavaScript in the Knowledge base portal.
- This CSS hides the Change password option in the UI, it does not technically prevent a password change if a reader accesses the option through another path. For stronger access control, manage reader authentication at the identity provider or reader settings level.
How to hide the Change password option for readers
-
Navigate to Settings (
) > Knowledge base site > Site customization > Custom CSS & JavaScript in the Knowledge base portal.
-
From the left navigation pane, select the CSS tab and paste the following snippet.
Hides the second dropdown item in the profile navigation bar, which corresponds to the Change password option.
.nav-bar-profile button.dropdown-item:nth-of-type(2) {
display: none !important;
}
-
Click Save.

Outcome
Before
The Change password option is visible in the reader's profile dropdown.

After
The Change password option is removed from the reader's profile dropdown.

Best practices
- Note the selector approach. The snippet uses
:nth-of-type(2)to target the second dropdown item. If Document360 updates the order of profile dropdown items in a future release, this selector may target the wrong item. Test after any significant platform update. - This is a UI change, not an access control. Hiding the option makes the change password path invisible to readers — it does not revoke their ability to change passwords through other routes. For stricter control, manage reader authentication at the SSO or reader settings level.
- Test after saving. Log in to your knowledge base site as a reader and confirm the Change password option is no longer visible in the profile dropdown.
- To revert, delete the snippet. Navigate back to the CSS tab in Custom CSS & JavaScript, remove the snippet, and click Save. The Change password option reappears immediately..