# Multiple organizations with different connection type

**URL:** <https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [April 29, 2024, 7:58pm UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072 "2024-04-29T19:58:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jquerijero](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jquerijero/32/59729_2.png) [@jquerijero](https://community.auth0.com/u/jquerijero)\
**Post date:** [April 29, 2024, 7:58pm UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072/1 "2024-04-29T19:58:37Z")

</div>

Connection Setup:  
Single Tenant  
Org 1 - Database Only  
Org 2 - Enterprise Only

How do I change login so that when Org 1 is passed in that it will ask for email and password, but when Org 2 is passed in that it will only ask for an identifier. Authentication Profile seems to be defined at the tenant level and not at the organization level.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [April 30, 2024, 3:05pm UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072/3 "2024-04-30T15:05:23Z")

</div>

Hi @jquerijero ,

Happy to assist you with your question.

> [@jquerijero](#):
>
> Authentication Profile seems to be defined at the tenant level and not at the organization level.

You’re right here. But it can be achieved that when logging in through org 1, the user will be authenticated against the database connection and when logging in through org2, against the enterprise connection.

> [@jquerijero](#):
>
> How do I change login so that when Org 1 is passed in that it will ask for email and password, but when Org 2 is passed in that it will only ask for an identifier.

If you choose the Identifier first profile, only the identifier prompt will be shown for the user. Then, depending on what organization they log in through, they will be prompted to provide the password on the second screen (org1) or redirected to the native enterprise connection login page  
to finalize the login (org2).

I would encourage you to test the experience. 👍 To do so, please assign relevant connections to relevant organizations (Auth0 tenant → Organizations → org1/org2 → Connections-\> relevant connection) and let us know if you have any issues or follow-up questions on that.

Thanks,  
Marcelina

---

<div class="post-metadata">

**Author:** ![jquerijero](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jquerijero/32/59729_2.png) [@jquerijero](https://community.auth0.com/u/jquerijero)\
**Post date:** [May 2, 2024, 8:22pm UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072/4 "2024-05-02T20:22:17Z")

</div>

I have set it up to ask for identifier first and that works, just wondering if Auth0 can detect the type of connection an organization has and show the most appropriate login experience.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [May 6, 2024, 1:29pm UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072/6 "2024-05-06T13:29:28Z")

</div>

Hey @jquerijero ,

I think I would choose the Authentication Profile set to Identifier + Password. I will try to explain _why_ below.

Generally speaking, the below screen shows that there are three ways of setting your application with the Organizations feature:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/8/d8366a3ed41e5324fa4ea2e9905aee601e571f5b.png)

> [@jquerijero](#):
>
> just wondering if Auth0 can detect the type of connection an organization has and show the most appropriate login experience.

Auth0 can detect the connection associated with the organization and I think the quickest way to _test it out_ would be to choose the `Login Flow: "Prompt for Organizations"` . The flow would look like this:

1. Provide the Organization:  

2. As the org1 has only the _database connection_ allowed, after clicking “Continue”, the user is present (depending on the Authentication Profile set for your tenant) with an Identifier or Identifier + Password screen. In this case: Identifier + Password:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/a/baedd1433caefb18d2b61e25e927aadd355745aa.png)

Analogically, if the user starts the flow by providing org2 in the first screen, after clicking “Continue,” they would be redirected to your _native enterprise login screen_ (so in this scenario, the Authentication profile of your Auth0 tenant does not matter).

What do you think? Please let me know your thoughts / follow-up questions.

---

<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:** [June 3, 2024, 6:36am UTC](https://community.auth0.com/t/multiple-organizations-with-different-connection-type/133072/7 "2024-06-03T06:36:07Z")

</div>

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