# User created through Management API cannot login

**URL:** <https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968>\
**Category:** Get Help\
**Created:** [February 17, 2021, 12:27am UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968 "2021-02-17T00:27:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred.besterwitch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fred.besterwitch/32/13023_2.png) [@fred.besterwitch](https://community.auth0.com/u/fred.besterwitch)\
**Post date:** [February 17, 2021, 12:27am UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968/1 "2021-02-17T00:27:37Z")

</div>

Hi

We are creating connections through the API, then creating an user for the connection, we can login in the portal(connections-\>try connection) but not when the app login screen is presented.

I checked the manually create users have authorized applications(can login using their credentials), but the users created using the API have none, even though the connection is enabled for the clients…

TIA

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 17, 2021, 4:12pm UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968/3 "2021-02-17T16:12:06Z")

</div>

Hi @fred.besterwitch,

What is happening when you try to log in? Are you seeing an error? It sounds like there may be a mismatch in the connection the user belongs to and the connection they are trying for login.

---

<div class="post-metadata">

**Author:** ![fred.besterwitch](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fred.besterwitch/32/13023_2.png) [@fred.besterwitch](https://community.auth0.com/u/fred.besterwitch)\
**Post date:** [February 17, 2021, 8:36pm UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968/4 "2021-02-17T20:36:18Z")

</div>

Dan, Thanks for Replying.  
I was creating users in multiple connections, then when I try to log in it only uses the [Username-Password-Authentication] connection. I was under the impression that you can create many connections with users in them and when you log in it will span all the connections. But I don’t think that’s the case.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 19, 2021, 4:56pm UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968/5 "2021-02-19T16:56:26Z")

</div>

@fred.besterwitch,

You are correct, that isn’t the case. That is likely why you are having trouble.

---

<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 6, 2021, 4:57pm UTC](https://community.auth0.com/t/user-created-through-management-api-cannot-login/57968/6 "2021-03-06T16:57:00Z")

</div>

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