# Is it possible to prevent duplicate emails from signing up?

**URL:** <https://community.auth0.com/t/is-it-possible-to-prevent-duplicate-emails-from-signing-up/79216>\
**Category:** Get Help\
**Tags:** email, custom-login\
**Created:** [March 3, 2022, 2:00pm UTC](https://community.auth0.com/t/is-it-possible-to-prevent-duplicate-emails-from-signing-up/79216 "2022-03-03T14:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakatatsu711](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nakatatsu711](https://community.auth0.com/u/nakatatsu711)\
**Post date:** [March 3, 2022, 2:00pm UTC](https://community.auth0.com/t/is-it-possible-to-prevent-duplicate-emails-from-signing-up/79216/1 "2022-03-03T14:00:03Z")

</div>

I noticed that Auth0 allows duplicate emails to be signed up through different providers (ie, Google OAuth can sign in a gmail account, and then that same gmail can sign up through the email/password function).

I was wondering if there is any way I can prevent Auth0 from allowing this to happen when a user tries to sign up.

I know how to use the Account Linking Extension, but this method cannot prevent it completely, since it is up to the user to decide whether to merge accounts.

Is it possible to use Rules or Hooks to prevent duplicate emails from signing up?  
If this is possible, please share a sample script.

Also, please let me know if there is another way.

Thanks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 3, 2022, 6:31pm UTC](https://community.auth0.com/t/is-it-possible-to-prevent-duplicate-emails-from-signing-up/79216/4 "2022-03-03T18:31:50Z")

</div>

Hi @nakatatsu711,

Welcome to the Auth0 Community!

I understand you’d like to prevent signups from users that have already created an account with the same email in a different connection/provider.

It doesn’t seem possible using a hook/pre registration action due to the fact that these don’t run for any connections that are database connection (they don’t run for social connections for example).

There are some strategies outlined in this thread:

> [@Prevent multiple signups with the same email across different connections](https://community.auth0.com/t/prevent-multiple-signups-with-the-same-email-across-different-connections/20354/6):
>
> Hi @hesperanca A possible technique I would suggest (as we do this in our organization) is to not merge identities in Auth0 and keep them separate and handle the merging in your system. The advantage of this is by default the identity will be treated as a separate user so there will be no accidental merging of accounts. The disadvantage is that instead of linking Auth0 to your system using email, you must link Auth0 using the Auth0 ID number provided. This method will give you more control o…

It might be worth it to create a [Feature Request](https://community.auth0.com/c/feedback/95) for this as it seems like there is some demand.

---

<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:** [March 18, 2022, 6:32pm UTC](https://community.auth0.com/t/is-it-possible-to-prevent-duplicate-emails-from-signing-up/79216/5 "2022-03-18T18:32:52Z")

</div>

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