# Changing user password

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

<figure><img src="https://2744305742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VWSqvZ4eaBLWvA6epdv%2Fuploads%2F1Ao6XPvT73uhNpGrDcM8%2Fadmin-user-password.png?alt=media&#x26;token=71c14163-66c8-46d4-ad2a-d04ddd14ce21" alt="Entering a new password for a user"><figcaption></figcaption></figure>

1. In **Administration > Security > Users**, retrieve the user (see [viewing-users](https://docs.sonarsource.com/sonarqube-server/instance-administration/user-management/viewing-users "mention")).
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](https://docs.sonarsource.com/sonarqube-server/instance-administration/user-management/creating-users "mention")
* [deactivating-users](https://docs.sonarsource.com/sonarqube-server/instance-administration/user-management/deactivating-users "mention")
* [changing-password](https://docs.sonarsource.com/sonarqube-server/user-guide/managing-your-account/changing-password "mention")
