# Connection users cannot login to organization

**URL:** <https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200>\
**Category:** Get Help\
**Tags:** organizations\
**Created:** [March 20, 2022, 10:08pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200 "2022-03-20T22:08:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel.paredes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joel.paredes/32/33352_2.png) [@joel.paredes](https://community.auth0.com/u/joel.paredes)\
**Post date:** [March 20, 2022, 10:08pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/1 "2022-03-20T22:08:55Z")

</div>

I am testing auth0 and have created an organization linked to a database connection.  
However, every time I try to login I get a password incorrect message and also I am not receiving any email if a try to reset the user password.

---

<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:** [March 23, 2022, 9:01pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/3 "2022-03-23T21:01:39Z")

</div>

Hey there @joel.paredes welcome to the community!

Did you ever have any luck with this? Any chance you were attempting this using Classic Universal Login as opposed to New? This (Organizations not supported in Classic UL) and other limitations of Organizations are outlined [here](https://auth0.com/docs/manage-users/organizations/organizations-overview#limitations).

Let us know!

---

<div class="post-metadata">

**Author:** ![joel.paredes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joel.paredes/32/33352_2.png) [@joel.paredes](https://community.auth0.com/u/joel.paredes)\
**Post date:** [March 24, 2022, 3:32pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/4 "2022-03-24T15:32:56Z")

</div>

Thank you for your response.

I am using the new universal login. I found out that this happens if I have two different database connections attached to an organization. It only works for users of the latest attached connection. Once I detached the second connection, the users from the first connection can login normally. Is this expected behavior?

---

<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:** [March 25, 2022, 4:13am UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/5 "2022-03-25T04:13:52Z")

</div>

No problem, happy to help!

Thanks for confirming you are using New Universal Login - That is expected behavior except the Org should actually default to the _oldest_ db connection as opposed to the latest that’s attached to the Org. This is the same logic that applies to client connections.

---

<div class="post-metadata">

**Author:** ![ccarter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ccarter/32/36230_2.png) [@ccarter](https://community.auth0.com/u/ccarter)\
**Post date:** [March 29, 2022, 5:00pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/6 "2022-03-29T17:00:16Z")

</div>

Why does the Org default to the oldest db connection? What is the purpose of having more than one db connection enabled in an organization if it will only use one of them?

---

<div class="post-metadata">

**Author:** ![adam.housman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.housman/32/19907_2.png) [@adam.housman](https://community.auth0.com/u/adam.housman)\
**Post date:** [March 29, 2022, 5:33pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/7 "2022-03-29T17:33:24Z")

</div>

@ccarter The behavior is as described above, but Auth0 Applications (clients) and Organizations can have multiple DB connections assigned because there are use-cases that necessitate directing users to a single logical application or Organization and specifying a particular `connection` in the authorize request. See: [Add Login Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow)

For example, you can direct end-users to a particular application or organization login prompt and specify a `connection` ahead of time to ensure they authenticate with the connection you want them to. It is the “discovery of which connection is the right connection to use by the end-user” that is not currently supported.

---

<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 13, 2022, 5:34pm UTC](https://community.auth0.com/t/connection-users-cannot-login-to-organization/80200/8 "2022-04-13T17:34:23Z")

</div>

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