--- title: "How to hide the change password option for readers" slug: "how-to-hide-the-change-password-option-for-readers" description: "In some cases, you would want to restrict the readers from changing the password. Utilize the below workaround in such scenarios." tags: ["Customization", "Knowledge base design"] updated: 2026-06-20T10:09:51Z published: 2026-06-20T10:09:51Z canonical: "docs.document360.com/how-to-hide-the-change-password-option-for-readers" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.document360.com/llms.txt > Use this file to discover all available pages before exploring further. # How to hide the change password option for readers 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. > [!NOTE] > NOTE > > > > > This 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 1. Navigate to **Settings** ( ) > **Knowledge base site** > **Site customization** > **Custom CSS & JavaScript** in the Knowledge base portal. ![Custom CSS and JavaScript settings panel in the Document360 Knowledge base portal](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Custom%20css%20&%20js.png) 2. 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; } ``` 1. Click **Save**. ![CSS tab showing the Change password hide snippet saved in the Custom CSS and JavaScript panel](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/Hide%20change%20password%20for%20readers.png) --- ## Outcome **Before** The **Change password** option is visible in the reader's profile dropdown. ![Reader profile dropdown showing the Change password option before applying the CSS](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/13_Screenshot-Before_change_password.png) **After** The **Change password** option is removed from the reader's profile dropdown. ![Reader profile dropdown with the Change password option hidden after applying the CSS](https://cdn.document360.io/860f9f88-412e-4570-8222-d5bf2f4b7dd1/Images/Documentation/12_Screenshot-After_change_password.png) --- ## 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..