> For the complete documentation index, see [llms.txt](https://docs.authgear.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.authgear.com/authentication-and-access/authentication/passwords/reset-password-for-users.md).

# Reset Password for Users

## How to reset a user's password via Authgear Portal <a href="#via-portal" id="via-portal"></a>

{% stepper %}
{% step %}
In your project, navigate to **User Management** > **Users**. Then click on the user whose password you would like to reset.

<figure><img src="/files/w4dn7s2aNQoTrxAcd4MF" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Go to the user's **Account Security** tab, and click on Change Password. You can also require the user to change their password on login by enabling the **Ask to change password on login** toggle.

<figure><img src="/files/wKt2PVc32gSO0Euk6cNX" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
You can either enter a secure password you wish to set for the user in the **Password** field, or click on **Generate** to have Authgear automatically create a new password for the user.

Check the "**Send the password to user's email**" box to enable Authgear to send the password entered in the **Password** field to the user.

If you wish to force users to change their password upon logging in with the password you set for them, enable "Ask user to change password on login". Otherwise, users can continue using the password you set for them.

<figure><img src="/files/bX5u9R4QCZSgP9iOHpyg" alt=""><figcaption></figcaption></figure>

Finally, remember to click **Change** to save your changes.
{% endstep %}
{% endstepper %}

## How to reset a user's password via AdminAPI <a href="#via-portal" id="via-portal"></a>

See [resetPassword](https://docs.authgear.com/authentication-and-access/authentication/passwords/pages/k9OsUIA7hmhGI2gB4Ilq#id-2.9.-resetpassword) under Reference > APIs > Admin API > API Queries and Mutations.

## What happens if the user loses the preset password?

Users can still log in to their new account if they lose the password you set for them. They can click **Forgot Password** during login, and an OTP or link will be sent to the user. The user can then set a new password.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.authgear.com/authentication-and-access/authentication/passwords/reset-password-for-users.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
