# Get the user\_id with the provider on API signup

**URL:** <https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121>\
**Category:** Get Help\
**Tags:** user\_id, api, signup, provider\
**Created:** [March 16, 2018, 11:13am UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121 "2018-03-16T11:13:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abasille](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abasille](https://community.auth0.com/u/abasille)\
**Post date:** [March 16, 2018, 11:13am UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121/1 "2018-03-16T11:13:35Z")

</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 user\_id prefixed with the provider : `auth0|5aab90daaa9ad130c17483f8`?

---

<div class="post-metadata">

**Author:** ![fady](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fady/32/7927_2.png) [@fady](https://community.auth0.com/u/fady)\
**Post date:** [March 16, 2018, 1:31pm UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121/2 "2018-03-16T13:31:46Z")

</div>

Hey @abasille 👋 The `user_id` you specified is actually the correct one.

Since the `POST /dbconnections/signup` endpoint only works on database connections, the `user_id` will always be of the format: `auth0|{_id}` where `{_id}` is simply the value returned by the call the `/dbconnections/signup`. In your example: `_id = 5aab90daaa9ad130c17483f8`.

You can simply append `auth0|` to the `_id` returned and you should be good to go 🙂

---

<div class="post-metadata">

**Author:** ![abasille](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abasille](https://community.auth0.com/u/abasille)\
**Post date:** [March 16, 2018, 1:34pm UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121/3 "2018-03-16T13:34:55Z")

</div>

Thank you @fady for your clear and fast answer!

---

<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 17, 2018, 1:34pm UTC](https://community.auth0.com/t/get-the-user-id-with-the-provider-on-api-signup/10121/4 "2018-03-17T13:34:59Z")

</div>

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