# Cannot create users for client

**URL:** <https://community.auth0.com/t/cannot-create-users-for-client/7356>\
**Category:** Get Help\
**Tags:** clients, users, conenctions\
**Created:** [July 1, 2017, 7:53am UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356 "2017-07-01T07:53:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![blubberbo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blubberbo/32/12857_2.png) [@blubberbo](https://community.auth0.com/u/blubberbo)\
**Post date:** [July 1, 2017, 7:53am UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356/1 "2017-07-01T07:53:21Z")

</div>

Hi,  
I have a client (X) and two connections (A & B). When I look at Clients → X → Connections, I can see both A and B are enabled. When I look at Connections → Database → A or B → Clients, I can see X.

However, when I create a user in A and try to login to X, it says “Wrong username/password”, but when I create a user in B and try to login, it works. As far as I can tell, there is no difference between the connections.

Any ideas or need any more information from me?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 3, 2017, 6:12am UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356/2 "2017-07-03T06:12:05Z")

</div>

How are you creating the users? As a note, if you are using the Password grant exchanges without specifying a connection/realm, Auth0 will use the Default Directory (connection) set in the Account Settings:

[https://manage.auth0.com/#/account](https://manage.auth0.com/#/account)

---

<div class="post-metadata">

**Author:** ![blubberbo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/blubberbo/32/12857_2.png) [@blubberbo](https://community.auth0.com/u/blubberbo)\
**Post date:** [July 3, 2017, 11:57pm UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356/3 "2017-07-03T23:57:08Z")

</div>

I am creating the users directly on the website (with the +Create User button). I am not sure what you mean about Password grant exchanges

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 4, 2017, 9:02am UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356/4 "2017-07-04T09:02:32Z")

</div>

@blubberbo thanks for clarifying. I’m assuming you choose the connection when creating the user. Can you describe you are handling the login in your app? Are you using Lock? What configuration and connections are you using? Feel free to update your question with code samples.

---

<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 2, 2018, 5:55am UTC](https://community.auth0.com/t/cannot-create-users-for-client/7356/5 "2018-03-02T05:55:07Z")

</div>


