# User creation without email/

**URL:** <https://community.auth0.com/t/user-creation-without-email/92509>\
**Category:** Get Help\
**Created:** [October 17, 2022, 8:55am UTC](https://community.auth0.com/t/user-creation-without-email/92509 "2022-10-17T08:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub.Przybylski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jakub.przybylski/32/33480_2.png) [@Jakub.Przybylski](https://community.auth0.com/u/Jakub.Przybylski)\
**Post date:** [October 17, 2022, 8:55am UTC](https://community.auth0.com/t/user-creation-without-email/92509/1 "2022-10-17T08:55:32Z")

</div>

Hi

I am trying to create a user by API endpoint.

My case is very similar to [Create Users without an Email Address](https://community.auth0.com/t/create-users-without-an-email-address/74484)

As the extension to this case, I have concerns.

The flow, as described in your documentation, creation of the users executes underneath 2 scripts: Get User (to verify if it doesn’t exist) and Login (to confirm if it was successful).

To the endpoint, we are passing Email, Username, and Password (among other fields)

When we get to the Login script, as the argument it gets Email and Password.  
Is there a way to for usage of username there?

We are concerned about the situation when there are multiple users with the same email address attached.

Also, an additional question - in the documentation for Create User email is described as optional.  
Is there any documentation on ‘when’ it might be optional? Because we were trying to create a user without email and in response we got ‘email is required’.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [October 18, 2022, 1:11pm UTC](https://community.auth0.com/t/user-creation-without-email/92509/2 "2022-10-18T13:11:02Z")

</div>

Hi @Jakub.Przybylski

You cannot have duplicate email addresses - each user must have a unique email address. If you have users sharing an email address - you should fix this before migrating.

The optional email address is for SMS connection users, no email required for those.

John

---

<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:** [December 10, 2024, 12:54am UTC](https://community.auth0.com/t/user-creation-without-email/92509/3 "2024-12-10T00:54:55Z")

</div>

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