# Email\_verified automatically set to true when updating email

**URL:** <https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115>\
**Category:** Get Help\
**Tags:** email-verification, bug\
**Created:** [April 21, 2022, 5:35am UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115 "2022-04-21T05:35:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anhnguyenvan.cf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anhnguyenvan.cf/32/27475_2.png) [@anhnguyenvan.cf](https://community.auth0.com/u/anhnguyenvan.cf)\
**Post date:** [April 21, 2022, 5:35am UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115/1 "2022-04-21T05:35:37Z")

</div>

As discussed here:  
[https://community.auth0.com/t/email-address-become-automatically-verified-after-changing-email-address-and-user-login/](https://community.auth0.com/t/email-address-become-automatically-verified-after-changing-email-address-and-user-login/)

2 years have passed and there’s no update, So I open a new thread, hoping someone help.

We are updating user’s email using Management API. Logs says successful but email\_verified stays true after updated, although we set it to false, indicate user need to verify the new email.

 ![Update-user-email](https://global.discourse-cdn.com/auth0/original/3X/6/b/6b9d30c6d7788f8c6d50439eb578597eb08ce930.png)

> Seems like with the accounts that verified by email(via “magic link”) the email\_verified flag can not be updated, since it’s always true no matter what we set.  
> On the other hand, the accounts that was not verified or verified via Auth0 dashboard can be easily updated(email\_verified flag)

Any idea will be highly appreciated.  
Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 21, 2022, 5:13pm UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115/3 "2022-04-21T17:13:00Z")

</div>

Hi @anhnguyenvan.cf ,

Thank you for posting this topic on Auth0 Community!

I just tested in Management API [PATCH user by id](https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id) endpoint by updating the email, and noticed the email\_verified was updated from true to false.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/b/bbd22e73acef8c717196f73f0dcff6b2df6571d5.jpeg)

Could you please provide the body script of your PATCH request so I can verify this behavior further? Thanks!

---

<div class="post-metadata">

**Author:** ![anhnguyenvan.cf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anhnguyenvan.cf/32/27475_2.png) [@anhnguyenvan.cf](https://community.auth0.com/u/anhnguyenvan.cf)\
**Post date:** [April 22, 2022, 1:41am UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115/4 "2022-04-22T01:41:15Z")

</div>

Hi @lihua.zhang ,  
Thank you for supporting.  
Upon further investigation, we found out the cause.  
The problem is, after calling API(from PHP Laravel) to PATCH user info successfully, another function(Wordpress) automatically update email\_verified flag back to true. We noticed this by checking Monitoring \> Logs, to see 2 API Operations called.  
We resolve this by updating user in Wordpress first, then Patch user in Auth0 by Management API.

Again, thank for your quick support.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 22, 2022, 7:12pm UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115/5 "2022-04-22T19:12:23Z")

</div>

Thank you for the updates! Glad to know it’s resolved. 👍

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 10:59am UTC](https://community.auth0.com/t/email-verified-automatically-set-to-true-when-updating-email/82115/6 "2022-12-22T10:59:14Z")

</div>


