# Using Universal Login with multiple databases

**URL:** <https://community.auth0.com/t/using-universal-login-with-multiple-databases/84434>\
**Category:** Get Help\
**Tags:** database-connections, universal-login\
**Created:** [June 1, 2022, 9:44pm UTC](https://community.auth0.com/t/using-universal-login-with-multiple-databases/84434 "2022-06-01T21:44:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![topher1120](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/topher1120/32/33549_2.png) [@topher1120](https://community.auth0.com/u/topher1120)\
**Post date:** [June 1, 2022, 9:44pm UTC](https://community.auth0.com/t/using-universal-login-with-multiple-databases/84434/1 "2022-06-01T21:44:07Z")

</div>

Hi, I’m trying to understand the interaction between the Universal Login and multiple databases.  
I have a single application to authenticate. I’d like to separate my users between “customers” and “employees” and have created Auth0 databases to that effect. I’ve authorized both connections to the application. However, I can not authenticate users in one of the databases through the Universal Login page.  
Can the Universal Login page support multiple connections? If so, I can I accomplish this?

Thanks,  
Chris

---

<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:** [June 10, 2022, 4:18pm UTC](https://community.auth0.com/t/using-universal-login-with-multiple-databases/84434/3 "2022-06-10T16:18:02Z")

</div>

Hi @topher1120,

There are a few different strategies here:

> [@Multiple Database connection with single application](https://community.auth0.com/t/multiple-database-connection-with-single-application/71292):
>
> Hey guys , Suppose I have two applications Internal Portal Public Portal with database connections like Internal DB Public DB and I want to access Internal DB and Public DB while login through Public Portal to check for user. And there isn’t any specified domain in email id for the Public DB so the User of Internal DB can login in Internal Portal and Public Portal both whereas User of Public DB can only login to Public Portal.

Additionally, if your users are going to have a similar experience, you may want to investigate using [Role-Based Access Control](https://auth0.com/docs/manage-users/access-control/rbac) instead of seperate DB connection.

I’d be happy to elaborate on any of these options. Let me know!

---

<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:** [June 28, 2022, 10:36pm UTC](https://community.auth0.com/t/using-universal-login-with-multiple-databases/84434/4 "2022-06-28T22:36:31Z")

</div>


