# \#user\_id

**URL:** https://community.auth0.com/tag/user-id/200.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Auth0|{user\_id } length](https://community.auth0.com/t/auth0-user-id-length/55371)

<div class="topic-metadata">

**Author:** [@diego.alejandro.gome](https://community.auth0.com/u/diego.alejandro.gome)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 4:56pm UTC](https://community.auth0.com/t/auth0-user-id-length/55371 "2020-12-27T16:56:47Z")

</div>

I use Auth0 without social identity connection meaning all of my user\_id fields in the id token have a auth0|{user\_id } pattern. I noticed the user\_id part is always a hex number so I want to strip the auth0| part and us…

---

## [Saving sub / user\_id in another database](https://community.auth0.com/t/saving-sub-user-id-in-another-database/52513)

<div class="topic-metadata">

**Author:** [@romanreypedrero](https://community.auth0.com/u/romanreypedrero)\
**Replies:** 1\
**Last updated:** [November 3, 2020, 7:18pm UTC](https://community.auth0.com/t/saving-sub-user-id-in-another-database/52513 "2020-11-03T19:18:11Z")

</div>

Hi here, Is it a good practice to store the user\_id / sub in a external databse? I want to provide a controlled resouce access to my application. That means a user can only modify the resources that he created. I thou…

---

## ["Invalid property user\_id" when using tickets/password-change endpoint](https://community.auth0.com/t/invalid-property-user-id-when-using-tickets-password-change-endpoint/9426)

<div class="topic-metadata">

**Author:** [@Krasimir\_Tsonev](https://community.auth0.com/u/Krasimir_Tsonev)\
**Replies:** 3\
**Last updated:** [September 16, 2020, 12:27am UTC](https://community.auth0.com/t/invalid-property-user-id-when-using-tickets-password-change-endpoint/9426 "2020-09-16T00:27:37Z")

</div>

I’m using the following function to send a password reset email: function passwordReset(userId, email) { var options = { method: 'POST', url: 'https://.../api/v2/tickets/password-change', headers: { author…

---

## [Best user identifier to use to store in local database](https://community.auth0.com/t/best-user-identifier-to-use-to-store-in-local-database/11783)

<div class="topic-metadata">

**Author:** [@chrissslee93](https://community.auth0.com/u/chrissslee93)\
**Replies:** 1\
**Last updated:** [May 23, 2018, 4:08pm UTC](https://community.auth0.com/t/best-user-identifier-to-use-to-store-in-local-database/11783 "2018-05-23T16:08:27Z")

</div>

This question was already asked here here, but the answer wasn’t entirely satisfactory. This documentation claims that user\_id is the best field to use as the unique identifier, but the problem with that field is that i…

---

## [Get the user\_id with the provider on API signup](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121)

<div class="topic-metadata">

**Author:** [@abasille](https://community.auth0.com/u/abasille)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 1:34pm UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121 "2018-03-16T13:34:55Z")

</div>

Hello, When I create a new user with /dbconnections/signup, the response contains only the short user\_id : {"\_id":"5aab90daaa9ad130c17483f8","email\_verified":false,"email":"myemail@gmail.com"} How can I retrieved the …

---

## [Types of \`user\_id\` allowed?](https://community.auth0.com/t/types-of-user-id-allowed/9011)

<div class="topic-metadata">

**Author:** [@m.dornseif](https://community.auth0.com/u/m.dornseif)\
**Replies:** 3\
**Last updated:** [December 20, 2017, 6:48am UTC](https://community.auth0.com/t/types-of-user-id-allowed/9011 "2017-12-20T06:48:01Z")

</div>

I seem to be able to create Users via the management API that I can not retrive. user\_ids like CK10596 and u22759of6c92c seem to work fine. But I also have uids like email@example.com. If I want to create a User with …

---

## [How do I get the dashboard admin user\_id](https://community.auth0.com/t/how-do-i-get-the-dashboard-admin-user-id/8052)

<div class="topic-metadata">

**Author:** [@dbinetti](https://community.auth0.com/u/dbinetti)\
**Replies:** 2\
**Last updated:** [October 13, 2017, 4:03pm UTC](https://community.auth0.com/t/how-do-i-get-the-dashboard-admin-user-id/8052 "2017-10-13T16:03:30Z")

</div>

I have my main account – not part of the normal users, but a dashboard admin. How do I get the user\_id for that account? I’m trying to use the impersonation API and can’t figure out how to get the user\_id to serve as i…

---

## [Are user\_id unique across different auth0 accounts and tenetns](https://community.auth0.com/t/are-user-id-unique-across-different-auth0-accounts-and-tenetns/8022)

<div class="topic-metadata">

**Author:** [@admin27](https://community.auth0.com/u/admin27)\
**Replies:** 1\
**Last updated:** [August 30, 2017, 3:15pm UTC](https://community.auth0.com/t/are-user-id-unique-across-different-auth0-accounts-and-tenetns/8022 "2017-08-30T15:15:49Z")

</div>

For example if I have 2 different auth0 accounts with different tenants for 2 separate applications ( to separate user data) but they will be using a shared 3rd party service that assumes the user\_id are unique. Would th…

---

## [Refresh mechanism](https://community.auth0.com/t/refresh-mechanism/7043)

<div class="topic-metadata">

**Author:** [@mike.r.leonard](https://community.auth0.com/u/mike.r.leonard)\
**Replies:** 3\
**Last updated:** [June 14, 2017, 8:58pm UTC](https://community.auth0.com/t/refresh-mechanism/7043 "2017-06-14T20:58:15Z")

</div>

Assuming a setup where a client SPA has a JWT and the API server stores refresh tokens. If a user has a JWT that has expired and they make a request it appears the the norm would be to return a 400 or 401 and have them …

---

## [User\_id hash on Custom DB](https://community.auth0.com/t/user-id-hash-on-custom-db/6333)

<div class="topic-metadata">

**Author:** [@maziar](https://community.auth0.com/u/maziar)\
**Replies:** 5\
**Last updated:** [April 24, 2017, 3:02pm UTC](https://community.auth0.com/t/user-id-hash-on-custom-db/6333 "2017-04-24T15:02:52Z")

</div>

I am moving my users on-premises and was wondering which type of hashing auth0 is using when running on the local DB?
