# Is it possible to programmatically create users?

**URL:** <https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412>\
**Category:** Get Help\
**Created:** [April 7, 2022, 9:43pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412 "2022-04-07T21:43:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarrett.croll](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jarrett.croll/32/36266_2.png) [@jarrett.croll](https://community.auth0.com/u/jarrett.croll)\
**Post date:** [April 7, 2022, 9:43pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/1 "2022-04-07T21:43:37Z")

</div>

I have an sso service I would like to integrate that does not support Oauth 2. Is it possible that I can authenticate with this service and then create a corresponding user in Auth0?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 7, 2022, 11:47pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/3 "2022-04-07T23:47:53Z")

</div>

Hey there @jarrett.croll!

While I can’t speak to your use case specifically, Auth0 does provide 2 APIS to create users: The Authentication API and Management API. It really depends on your specific implementation as to which may work better for you. Please see below for another community topic that sheds some light on the differences between the 2.

> [@Signup vs Create User APIs. Which to use?](https://community.auth0.com/t/signup-vs-create-user-apis-which-to-use/7659):
>
> I’m new to Auth0 and working on a web application that will have a custom signup form using the Auth0 APIs. While going through the documentation there seems to be two possible ways I could create the user account in my connection database. There is the “public” Management API [Signup](https://auth0.com/docs/api/authentication#signup) /dbconnections/signup and the “private” Management API [Create a user](https://auth0.com/docs/api/management/v2#!/Users/post_users) /api/v2/users. Can someone explain the difference better these two and when to use one vs. the other? Thanks.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![jarrett.croll](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jarrett.croll/32/36266_2.png) [@jarrett.croll](https://community.auth0.com/u/jarrett.croll)\
**Post date:** [April 8, 2022, 2:01pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/4 "2022-04-08T14:01:42Z")

</div>

Hi @ty.frith , thanks for getting back to me. Can you confirm the `/api/v2/users` endpoint works and link to the documentation for me?

---

<div class="post-metadata">

**Author:** ![jarrett.croll](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jarrett.croll/32/36266_2.png) [@jarrett.croll](https://community.auth0.com/u/jarrett.croll)\
**Post date:** [April 8, 2022, 2:09pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/5 "2022-04-08T14:09:08Z")

</div>

@ty.frith I believe I have found the docs (not easy!) thank you I will give a try

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2)**

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 8, 2022, 8:24pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/6 "2022-04-08T20:24:03Z")

</div>

Hey @jarrett.croll thanks for sharing and! Just out of curiosity, does the link from the other community post I shared not work for you?

> [@Signup vs Create User APIs. Which to use?](https://community.auth0.com/t/signup-vs-create-user-apis-which-to-use/7659/1):
>
> Management API [Create a user](https://auth0.com/docs/api/management/v2?_ga=2.19518328.1351548840.1649174387-645277782.1648681205&_gl=1*11njr3n*rollup_ga*NjQ1Mjc3NzgyLjE2NDg2ODEyMDU.*rollup_ga_F1G3E656YZ*MTY0OTQ0ODUxOC4xNy4xLjE2NDk0NDg2NDYuNjA.#!/Users/post_users) /api/v2/users

FWIW - This topic is also helpful in sort of outlining from a high level what the Management API is good for/how it might be used.:

> [@Help understanding the use of Management API](https://community.auth0.com/t/help-understanding-the-use-of-management-api/25437):
>
> Hi there, I’m relatively new to Auth0 and would like some confirmation that I understand this correctly! At the moment I am building a Mongodb/Express/Angular/Node SPA that uses auth0 to authenticate users. I have successfully followed the tutorial here: [The Complete Guide to Angular User Authentication with Auth0](https://auth0.com/blog/real-world-angular-series-part-1/) and setup routes with roles stored in the app\_metadata for each user + used the JWT as middleware on routes on my backend. Here’s where I get lost. In the above tutorial, there’s no…

Cheers!

---

<div class="post-metadata">

**Author:** ![jarrett.croll](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jarrett.croll/32/36266_2.png) [@jarrett.croll](https://community.auth0.com/u/jarrett.croll)\
**Post date:** [April 11, 2022, 2:44pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/7 "2022-04-11T14:44:50Z")

</div>

@ty.frith I see the source of the confusion. The link loads up your docs and the first page is “Introduction to our Docs” then five seconds later it redirects to the create user api endpoint docs. So _at first_ it does not seem like the right link but if you wait it ends up being the correct link. Not a good UX!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 11, 2022, 7:37pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/8 "2022-04-11T19:37:14Z")

</div>

Gotcha! You’re correct in that there is a bit of a delay there. Thanks for clarifying and for the feedback, it’s always much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 22, 2022, 3:37pm UTC](https://community.auth0.com/t/is-it-possible-to-programmatically-create-users/81412/9 "2022-04-22T15:37:38Z")

</div>

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