# Change user email

**URL:** <https://community.auth0.com/t/change-user-email/72818>\
**Category:** Get Help\
**Tags:** email, email-verification, verification-email\
**Created:** [November 9, 2021, 12:24pm UTC](https://community.auth0.com/t/change-user-email/72818 "2021-11-09T12:24:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander.spodin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexander.spodin/32/13075_2.png) [@alexander.spodin](https://community.auth0.com/u/alexander.spodin)\
**Post date:** [November 9, 2021, 12:24pm UTC](https://community.auth0.com/t/change-user-email/72818/1 "2021-11-09T12:24:14Z")

</div>

Hello,

I updated user’s email with  
PATCH /api/v2/users/{id}

[Auth0 Management API v2](https://auth0.com/docs/api/management/v2?_ga=2.108783106.1869085915.1636050937-1726269332.1636050932&_gl=1*11ln7t6*rollup_ga*MTcyNjI2OTMzMi4xNjM2MDUwOTMy*rollup_ga_F1G3E656YZ*MTYzNjE0MjYxMC45LjEuMTYzNjE0MjcwMC41OQ)…#!/Users/patch\_users\_by\_id

and receive verification email with link.

On this step if I do not click verification link I can’t use old e-mail  
because of 429 response “Your account has been blocked after multiple consecutive login attempts”  
I go to user management console and that user is not blocked, email was changed and is in pending verification status.

If for example I miss typed my new email on the previous step, how can I use old one?

Sorry, but is there any out-of-the box solution for it? It is normal user flow and it should not have any workarounds.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 9, 2021, 7:47pm UTC](https://community.auth0.com/t/change-user-email/72818/3 "2021-11-09T19:47:31Z")

</div>

Hi @alexander.spodin,

Thanks for reaching out to the Auth0 Community!

I understand that you are looking for a way to revert the user’s email address to your original email address.

To do so, you will need to update the user with the original email address by calling the [Update a User](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id) endpoint.

Alternatively, you can accomplish the same results by changing the email address on the user profile page in the Auth0 _Dashboard \> User Management \> Users \> YOUR\_USER_ and pressing the _Actions \> Change Email_ option.

In regards to your observations, I have tried the following:

1. Update user’s email address to new email address
2. Login using the new email address without verifying the new email address
3. When trying to log in I received the **Wrong email or password** message.

And this is to be expected, and the correct error message. I could not get the brute force detection error message to throw, which reads **Your account has been blocked after multiple consecutive login attempts**.

If this error does occur, it most certainly involves [Brute-Force Protection](https://auth0.com/docs/configure/attack-protection/brute-force-protection).

Hoped this helps!

Please let me know if you have any other questions. I’d be happy to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![alexander.spodin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexander.spodin/32/13075_2.png) [@alexander.spodin](https://community.auth0.com/u/alexander.spodin)\
**Post date:** [November 9, 2021, 8:20pm UTC](https://community.auth0.com/t/change-user-email/72818/4 "2021-11-09T20:20:26Z")

</div>

Hi, @rueben.tiow ,

Thanks, for quick answer, I really appreciate this!

You did all 3 steps correctly, except the expected result.  
If I didn’t verify email I expect to use old one and do not have any wrong messages with login with old one.

Imagine you are user and click change email on the website and submitted the new one.  
Then you realized that there is a mistake in typing new address, or you forgot password from new email or you thought it would be nice not to change it. Logically you thought you will not verify it and will use old one. But when you try to login, it returned error. What will happen if new address is mistyped?

So I made api call to update user endpoint and after that I need have an ability to login with old one, but I when I verify it - the email should be changed and I can login with new email.

Please correct me if I am wrong, how does it work now? Maybe I misused update user endpoint for email update?

Thank you very much for the time spent on reading this 🙂

---

<div class="post-metadata">

**Author:** ![alexander.spodin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexander.spodin/32/13075_2.png) [@alexander.spodin](https://community.auth0.com/u/alexander.spodin)\
**Post date:** [November 10, 2021, 11:20am UTC](https://community.auth0.com/t/change-user-email/72818/5 "2021-11-10T11:20:11Z")

</div>

Sorry to bother, but any updates about this?

---

<div class="post-metadata">

**Author:** ![alexander.spodin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexander.spodin/32/13075_2.png) [@alexander.spodin](https://community.auth0.com/u/alexander.spodin)\
**Post date:** [November 10, 2021, 3:22pm UTC](https://community.auth0.com/t/change-user-email/72818/6 "2021-11-10T15:22:42Z")

</div>

Could you please tell if I asked this question understandable?

We use java on back-end and React on UI. Any other details needed about this?

---

<div class="post-metadata">

**Author:** ![alexander.spodin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexander.spodin/32/13075_2.png) [@alexander.spodin](https://community.auth0.com/u/alexander.spodin)\
**Post date:** [November 11, 2021, 11:39am UTC](https://community.auth0.com/t/change-user-email/72818/7 "2021-11-11T11:39:09Z")

</div>

Any updates please?  
Is my question understandable?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 12, 2021, 12:24am UTC](https://community.auth0.com/t/change-user-email/72818/8 "2021-11-12T00:24:55Z")

</div>

Hi @alexander.spodin,

Thanks for your response.

> [@alexander.spodin](#):
>
> Imagine you are user and click change email on the website and submitted the new one.  
> Then you realized that there is a mistake in typing new address, or you forgot password from new email or you thought it would be nice not to change it.

There are a couple of things here I’d like to point. First, allowing users to change their email is not an option that they can self-serve. It is not a functionality that is available with Auth0 OOTB. Seeing that the only way is through some involvement of the Management API, then the scenario of the user being locked out is to be expected. A revert will be needed.

Second, a forgot password is an option that users can self serve, so in that way, users who lock themselves out can retry the forgot password flow to regain access to their account as many times as needed (sparingly).

I found this [How to let users change their email? SAFELY](https://community.auth0.com/t/how-to-let-users-change-their-email-safely/41748) Community Post that addresses your scenario.

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 6, 2021, 11:05pm UTC](https://community.auth0.com/t/change-user-email/72818/9 "2021-12-06T23:05:23Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
