> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/instance-administration/user-management/changing-user-password.md).

# Changing user password

## Changing the password in the UI <a href="#ui" id="ui"></a>

<figure><img src="/files/FpCb97fSmz5LQd5cOgEB" alt="Entering a new password for a user"><figcaption></figcaption></figure>

1. In **Administration > Security > Users**, retrieve the user (see [Viewing user accounts](/sonarqube-server/instance-administration/user-management/viewing-users.md)).
2. Select the action menu for the user.
3. Select **Enter a new password**.

{% hint style="info" %}
You cannot change any user password in the UI (even of user accounts not tied to a third-party provider) if your system has enabled automatic provisioning mode.
{% endhint %}

## Changing the password through the API <a href="#api" id="api"></a>

Use the web service [`api/users/change_password`](https://next.sonarqube.com/sonarqube/web_api/api/users/change_password).

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Creating users manually](/sonarqube-server/instance-administration/user-management/creating-users.md)
* [Deactivating users](/sonarqube-server/instance-administration/user-management/deactivating-users.md)
* [Changing password](/sonarqube-server/user-guide/managing-your-account/changing-password.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/instance-administration/user-management/changing-user-password.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
