# Saas business looking to create AUTH0 users from within Salesforce

**URL:** <https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888>\
**Category:** Get Help\
**Tags:** salesforce, salesforce-connectio, auth0\
**Created:** [August 30, 2020, 3:57pm UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888 "2020-08-30T15:57:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdkatz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdkatz/32/13246_2.png) [@jdkatz](https://community.auth0.com/u/jdkatz)\
**Post date:** [August 30, 2020, 3:57pm UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888/1 "2020-08-30T15:57:40Z")

</div>

Hi, I would like to create auth0 users in Salesforce. I would like to create a contact in Salesforce and provision this contact to be a user and create them in Auth0. Has anyone successfully done this? Can you share your APEX code? Its important to sync the Auth0 ID with the Salesforce Account and Contact ID.

Thanks!  
Jonny

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [September 15, 2020, 10:26am UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888/2 "2020-09-15T10:26:04Z")

</div>

I confess I have no experience with APEX nor am I aware of any sample that calls into Auth0 Management API. Having said that have you already tried to achieve that requirement through the Management API ([Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/post_users)) and using external HTTP calls from APEX ([Salesforce Developers](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts.htm))?

---

<div class="post-metadata">

**Author:** ![jdkatz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jdkatz/32/13246_2.png) [@jdkatz](https://community.auth0.com/u/jdkatz)\
**Post date:** [November 26, 2020, 6:11pm UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888/3 "2020-11-26T18:11:13Z")

</div>

Hi sorry for the late reply. I haven’t tried that yet but it looks like we would all a create user from salesforce and then bind the salesforce contact id with the new user id created in auth0. I have a question regarding best practices, Salesforce is our source of truth, if i am created a new user registration flow, do i send that data to Auth0 first or can i create that contact in sf then call auth0 API to create that user?

Also can i create a user in auth0 without a password? Looks like i would need to store the contacts password and remove it after an auth0 user is created…

---

<div class="post-metadata">

**Author:** ![BritV](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@BritV](https://community.auth0.com/u/BritV)\
**Post date:** [March 14, 2023, 9:50pm UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888/4 "2023-03-14T21:50:55Z")

</div>

Yes. You can create a user without password. Set that user for password reset when they login. Alternatively, you can send them a generic link for password reset and they can go from there!

---

<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 28, 2023, 9:51pm UTC](https://community.auth0.com/t/saas-business-looking-to-create-auth0-users-from-within-salesforce/48888/5 "2023-03-28T21:51:25Z")

</div>

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