# Auth0 Lock - Social sign-in creates Auth0 Management User

**URL:** <https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812>\
**Category:** Get Help\
**Tags:** social-provider, lock\
**Created:** [May 29, 2020, 6:18pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812 "2020-05-29T18:18:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cflowers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cflowers/32/20964_2.png) [@cflowers](https://community.auth0.com/u/cflowers)\
**Post date:** [May 29, 2020, 6:18pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/1 "2020-05-29T18:18:00Z")

</div>

Hi there, just wanted to clarify some behavior I couldn’t find in the documentation.

Using Lock with Social sign-in and sign-up, it appears that an Auth0 User is created when attempting to “Sign in with X” as well when registering via “Sign up with X” (Google in my specific case).

Just wanted to verify that this behavior is expected. I have a multi-step registration (more than just email/password), so my login handler can redirect to finish the registration flow at this point. I was just a bit surprised to see a User created from a `Sign in` attempt.

Thanks!

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [May 29, 2020, 6:41pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/2 "2020-05-29T18:41:28Z")

</div>

Good afternoon,

Could you provide some screenshots and steps so I can confirm the behavior you are referencing to?

Thanks!

---

<div class="post-metadata">

**Author:** ![cflowers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cflowers/32/20964_2.png) [@cflowers](https://community.auth0.com/u/cflowers)\
**Post date:** [May 29, 2020, 6:52pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/3 "2020-05-29T18:52:47Z")

</div>

Sure:

This is the initial state. My account email doesn’t exist within Auth0 Users.

 ![screen1](https://global.discourse-cdn.com/auth0/original/3X/2/9/2994a63b8462ca2875b2a1e2317afc78022c2abd.png)

This is my `/login` page using the Lock app. From here, I click `Log in with Google`.  
My browser is already logged into `cflowers.rp.1`  
 ![screen2](https://global.discourse-cdn.com/auth0/original/3X/6/b/6bd45022227faecafcfbf91141416f09197096f8.png)

After login, my custom rules mark the attempt as unauthorized since the account has not completed registration, I have Lock configured to display an error message in this scenario.

But if we now look at the Users page:

 ![screen3](https://global.discourse-cdn.com/auth0/original/3X/c/3/c3248dbd1385dc1145cc765e68bf1a8e1b183cb1.png)

I now have a User with email verified, just from a sign-in attempt. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![cflowers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cflowers/32/20964_2.png) [@cflowers](https://community.auth0.com/u/cflowers)\
**Post date:** [May 29, 2020, 6:53pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/4 "2020-05-29T18:53:59Z")

</div>

To clarify, for the `/login` page my browser is logged into the `cflowers.rp.1@gmail.com` account.

---

<div class="post-metadata">

**Author:** ![cflowers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cflowers/32/20964_2.png) [@cflowers](https://community.auth0.com/u/cflowers)\
**Post date:** [June 2, 2020, 5:59pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/5 "2020-06-02T17:59:07Z")

</div>

Little bump here, would like to clarify if this is intended behavior to create a User just based on a login attempt.

---

<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:** [June 3, 2020, 1:13pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/6 "2020-06-03T13:13:12Z")

</div>

Hey there!

Let me ping @karen1 regarding that

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [June 3, 2020, 1:34pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/7 "2020-06-03T13:34:18Z")

</div>

Good morning,

Sorry for the delay.

The signup and login buttons are the same when using a third party IdP like Google. In addition, there’s no way of stopping signup of social logins, because conceptually the signup does not happen at Auth0, but at the external identity provider.

So, the user would be created and exist, however, if you want to prevent access, you would use something of this sort in your rule `return callback(new UnauthorizedError('Access denied'));`

---

<div class="post-metadata">

**Author:** ![cflowers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cflowers/32/20964_2.png) [@cflowers](https://community.auth0.com/u/cflowers)\
**Post date:** [June 3, 2020, 3:53pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/8 "2020-06-03T15:53:02Z")

</div>

Awesome, thanks for clearing that up!

---

<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:** [June 3, 2020, 4:02pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/9 "2020-06-03T16:02:17Z")

</div>

We’re here for you !

---

<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:** [June 18, 2020, 4:02pm UTC](https://community.auth0.com/t/auth0-lock-social-sign-in-creates-auth0-management-user/43812/10 "2020-06-18T16:02:21Z")

</div>

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