# Pre-user registration runs for existing users on passwordless

**URL:** <https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608>\
**Category:** Get Help\
**Tags:** pre-user-registratio, passwordless\
**Created:** [March 9, 2022, 8:30pm UTC](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608 "2022-03-09T20:30:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thingsinjars](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thingsinjars/32/29722_2.png) [@thingsinjars](https://community.auth0.com/u/thingsinjars)\
**Post date:** [March 9, 2022, 8:30pm UTC](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608/1 "2022-03-09T20:30:00Z")

</div>

We’re using a pre-user registration hook to allow sign-ups only from pre-approved domains but we also have manually-created accounts that don’t match the pre-approved domains.

This _shouldn’t_ be a problem as the pre-user registration hook should only run for new accounts but it seems to run every time anyone triggers the passwordless login flow.

Existing accounts shouldn’t trigger this hook and just go straight through the login process.

Is this a known bug?  
Is it necessary to tell our action to access the management API and look up whether the user already exists? That seems like overkill for something fairly basic.

Anyone know how to go around this?

---

<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:** [March 9, 2022, 9:32pm UTC](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608/4 "2022-03-09T21:32:11Z")

</div>

Hi @thingsinjars ,

Welcome to the Auth0 Community!

I did some research about your topic. Actually, it’s already raised as feedback [here](https://community.auth0.com/t/pre-user-registration-should-not-run-for-existing-users/61688). Could you please check it out? If it’s the same request, please click on Vote to help get it implemented faster.

I have not found a workaround yet. Let’s see if any other community members can shed some light on this problem meantime.

Thank you!

---

<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:** [February 1, 2023, 7:14pm UTC](https://community.auth0.com/t/pre-user-registration-runs-for-existing-users-on-passwordless/79608/5 "2023-02-01T19:14:13Z")

</div>


