# After deleting and reregistering a gmail/facebook authenticated user gets the same authId as before

**URL:** <https://community.auth0.com/t/after-deleting-and-reregistering-a-gmail-facebook-authenticated-user-gets-the-same-authid-as-before/73566>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [November 22, 2021, 5:36pm UTC](https://community.auth0.com/t/after-deleting-and-reregistering-a-gmail-facebook-authenticated-user-gets-the-same-authid-as-before/73566 "2021-11-22T17:36:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdurrahman.dundar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/abdurrahman.dundar/32/12861_2.png) [@abdurrahman.dundar](https://community.auth0.com/u/abdurrahman.dundar)\
**Post date:** [November 22, 2021, 5:36pm UTC](https://community.auth0.com/t/after-deleting-and-reregistering-a-gmail-facebook-authenticated-user-gets-the-same-authid-as-before/73566/1 "2021-11-22T17:36:20Z")

</div>

I don’t know if its intended but shouldn’t every new account get a unique AuthId? When I delete a user that has authenticated via gmail or facebook using the management api and after that reregister the user I see that it has the same authId as before.

I use the authId to match the logged in user to the data in my database, I have no problems with the Username-Password-Authentication.

Thanks for reading!

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [November 22, 2021, 8:52pm UTC](https://community.auth0.com/t/after-deleting-and-reregistering-a-gmail-facebook-authenticated-user-gets-the-same-authid-as-before/73566/2 "2021-11-22T20:52:35Z")

</div>

Hi Abdurrahman,

Welcome to the Auth0 community.

When you say AuthId I’m assuming you’re referring to the user\_id as it appears against the user profile for example with google this might be something like **google-oauth2|11322669123418885764** (not an actual account).

When it comes to social user accounts the user\_id is part of the Identity Provider Attributes i.e. it contains info retrieved from the identity provider with which the user originally authenticates so it isn’t something that Auth0 assigns. This would make sense then if the user\_id is the same every time for a particular social user, even if the user is deleted in Auth0, re-instating the account would prompt google to send the same id as it is the same user from google’s perspective.

You can read more about this here [https://auth0.com/docs/users/user-profiles/user-profile-structure](https://auth0.com/docs/users/user-profiles/user-profile-structure)

I hope this makes sense.  
Please let me know if you have any further questions on this. Many thanks.

---

<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:** [December 7, 2021, 2:32pm UTC](https://community.auth0.com/t/after-deleting-and-reregistering-a-gmail-facebook-authenticated-user-gets-the-same-authid-as-before/73566/3 "2021-12-07T14:32:21Z")

</div>


