# Verification mail (using link) - how to identify the user?

**URL:** <https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372>\
**Category:** Get Help\
**Tags:** email-verification, user-management\
**Created:** [January 8, 2024, 11:50am UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372 "2024-01-08T11:50:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![auth030](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@auth030](https://community.auth0.com/u/auth030)\
**Post date:** [January 8, 2024, 11:50am UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/1 "2024-01-08T11:50:56Z")

</div>

Hello,  
When a user register for the first time, he gets a verification mail with a link to confirm his email.

What is the best recommended practice to notify immediately external system about this mail confirmation?

We tried to use the “Redirect URL” option for this mail and to add the {{ user.email }} parameter in the redirect URL, but the email was not submitted. How can we uniquely identify the user from the mail Redirect URL?  
If the Redirect URL is not suitable for this, how can we get notified that the user has verified his mail?

Kind Regards

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 8, 2024, 11:55pm UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/4 "2024-01-08T23:55:56Z")

</div>

Hey there @auth030 welcome to the community!

> [@auth030](#):
>
> We tried to use the “Redirect URL” option for this mail and to add the {{ user.email }} parameter in the redirect URL, but the email was not submitted. How can we uniquely identify the user from the mail Redirect URL?

Have you tried setting the `includeEmailInRedirect` flag of the `verify_email` template using the [Management API](https://auth0.com/docs/api/management/v2/email-templates/patch-email-templates-by-template-name)?

Alternatively, you might be interested in utilizing [log streams](https://auth0.com/docs/customize/log-streams) to monitor for successful email verification events - These will include the user’s email, user\_id, etc.

> [@Trigger a DB update on email verification click](https://community.auth0.com/t/trigger-a-db-update-on-email-verification-click/93168):
>
> wave everyone. We want to update our backend when a user clicks through the email verification. I can’t find a trigger in Rules or Actions that would listen for that event, only triggers that run directly after signup. An I missing something? Right now, Auth0’s user database carries the updated ‘email verified’ flag, but after signup I can’t sync it with our own data.

---

<div class="post-metadata">

**Author:** ![auth030](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@auth030](https://community.auth0.com/u/auth030)\
**Post date:** [January 9, 2024, 12:26pm UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/5 "2024-01-09T12:26:00Z")

</div>

Hello,

We try to customize the mail, just like the image below:

 ![redirect](https://global.discourse-cdn.com/auth0/original/3X/4/b/4b9f929f125bb5ebcde8a4be24a1c82a73fc8fbd.png)

In all our tests, the ‘clientmail’ parameter is blank.

So, as far as I understand, in order to get the mail in the callback URL, first we need the set the

‘includeEmailInRedirect’ flag in the Management API? Is that correct? And after that, we will get the email in as a GET parameter in the callback URL? The help article, you sent, says that the default value for the ‘includeEmailInRedirect’ flag is TRUE. In this case, what else we should set ?

Kind Regards

---

<div class="post-metadata">

**Author:** ![binh.tieu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/binh.tieu/32/49655_2.png) [@binh.tieu](https://community.auth0.com/u/binh.tieu)\
**Post date:** [January 19, 2024, 4:48am UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/6 "2024-01-19T04:48:23Z")

</div>

I have the same issue as you. Did you resolve it?

---

<div class="post-metadata">

**Author:** ![binh.tieu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/binh.tieu/32/49655_2.png) [@binh.tieu](https://community.auth0.com/u/binh.tieu)\
**Post date:** [January 22, 2024, 4:11am UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/7 "2024-01-22T04:11:43Z")

</div>

Hi, I resolved the issue. You can have a look at [How to get user\_id at Redirect To URL at Email Templates of Verify Email using Link](https://community.auth0.com/t/how-to-get-user-id-at-redirect-to-url-at-email-templates-of-verify-email-using-link/125167)

---

<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, 2024, 4:11am UTC](https://community.auth0.com/t/verification-mail-using-link-how-to-identify-the-user/124372/8 "2024-02-05T04:11:50Z")

</div>

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