# API Front End to Your Database for Import User to Auth0

**URL:** <https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [January 14, 2021, 8:18pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229 "2021-01-14T20:18:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jin1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jin1/32/26940_2.png) [@jin1](https://community.auth0.com/u/jin1)\
**Post date:** [January 14, 2021, 8:18pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229/1 "2021-01-14T20:18:31Z")

</div>

We want to migrate user from our own database to auth0. Instead of access the database directly, we want to provide a RESTful api.  
Does anyone have done this before? Do you have any example that I can clone?

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [January 14, 2021, 11:44pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229/2 "2021-01-14T23:44:45Z")

</div>

That’s no problem. You can use the [custom database](https://auth0.com/docs/connections/database/custom-db) feature with automatic migration enabled. And from the templates, you select “Request with Basic Auth”. That’s the template you’re looking for.

Side note: you can also bulk import users from your own database incl. hashed passwords, if the hashing algo is supported, but I assume you have reasons not to do so.

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

---

<div class="post-metadata">

**Author:** ![jin1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jin1/32/26940_2.png) [@jin1](https://community.auth0.com/u/jin1)\
**Post date:** [January 15, 2021, 8:27pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229/3 "2021-01-15T20:27:30Z")

</div>

thanks a lot, it works

---

<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:** [January 28, 2021, 3:41pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229/4 "2021-01-28T15:41:40Z")

</div>

Perfect glad to hear that!

---

<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:** [January 28, 2021, 3:41pm UTC](https://community.auth0.com/t/api-front-end-to-your-database-for-import-user-to-auth0/56229/5 "2021-01-28T15:41:43Z")

</div>


