# On email verification, add metadata

**URL:** <https://community.auth0.com/t/on-email-verification-add-metadata/86359>\
**Category:** Get Help\
**Tags:** email\_verified, email-verification, verification-email\
**Created:** [July 4, 2022, 10:01am UTC](https://community.auth0.com/t/on-email-verification-add-metadata/86359 "2022-07-04T10:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad.ali](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ahmad.ali/32/33378_2.png) [@ahmad.ali](https://community.auth0.com/u/ahmad.ali)\
**Post date:** [July 4, 2022, 10:01am UTC](https://community.auth0.com/t/on-email-verification-add-metadata/86359/1 "2022-07-04T10:01:54Z")

</div>

Hi

I’m interested in adding some specific metadata, following a users verification. While a proportion of users may well login after verification, almost 50% do not. But I still want to set this metadata.

So flow is:  
1/. User is sent a verification email (periodic, not registration based verification)  
2/. On clicking on the verification token in the email: app\_metadata is set to be xyz (I do not want to set email\_verfied as this can only be done once

Is there a way to do this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [January 22, 2025, 9:36pm UTC](https://community.auth0.com/t/on-email-verification-add-metadata/86359/3 "2025-01-22T21:36:43Z")

</div>

Hi @ahmad.ali,

Thank you for reaching out to us!

As you are working with a Verification Email, which is usually manipulates the email\_verified attribute, you could instead create an additional attribute that works as a counter when the email is verified. The Post-Login Action could work in the way that on the first login after the verification email is actioned, the email is set to verified, the counter goes up by 1, then email\_verified is set to false again. This way, you will have a way of seeing if the verification has gone through while maintaining the email\_verified as false for your users.

You can find more information on our [documentation here](https://auth0.com/docs/manage-users/user-accounts/metadata/manage-user-metadata).

Hope this helps!  
Gerald

---

<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:** [February 5, 2025, 9:37pm UTC](https://community.auth0.com/t/on-email-verification-add-metadata/86359/4 "2025-02-05T21:37:09Z")

</div>

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