# Customize connection in organization based on the application's client ID

**URL:** <https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373>\
**Category:** Get Help\
**Tags:** connections\
**Created:** [November 30, 2022, 2:49pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373 "2022-11-30T14:49:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeeann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeeann/32/25904_2.png) [@jeeann](https://community.auth0.com/u/jeeann)\
**Post date:** [November 30, 2022, 2:49pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/1 "2022-11-30T14:49:08Z")

</div>

Here’s my current setup:

- I have 2 Applications, 1 for admin and 1 for customer/client where only team members of organizations can access the application
- I have 2 roles, admin and customer
- I have 2 or more organizations

What I want to do?

- For the admin application, I want the connection to be only Database Connection and for the Customer/client application I want to have Database and Criipto Connection. I want this configuration to apply in every organization I have.

How can I do this?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2022, 7:45pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/3 "2022-11-30T19:45:09Z")

</div>

Hi @jeeann,

Thanks for reaching out to the Auth0 Community!

I understand you would like to specify different Connections for your Applications.

To accomplish this, there is a toggle for each of your Connections in the Applications settings to allow/disallow them to authenticate.

In other words, on your [Auth0 Dashboard \> Applications \> Applications](https://manage.auth0.com/#/applications) there is a **Connections** tab that lets you enable/disable your database connections.

For example:

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

Then for each Organization, you will have to turn on these Connections:

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

And depending on whether you enable/disable **Membership On Authentication** , you may have to [add those users as Organization Members manually](https://auth0.com/docs/manage-users/organizations/configure-organizations/assign-members).

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

Please let me know if there is anything else I can do to help!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![jeeann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeeann/32/25904_2.png) [@jeeann](https://community.auth0.com/u/jeeann)\
**Post date:** [December 2, 2022, 8:51am UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/4 "2022-12-02T08:51:11Z")

</div>

Hi @rueben.tiow ,

Thank you for responding. I’ve tried the solution you provided.  
These are my application:

1. Admin  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/c/ac4303d4fc480f896ff5064e9a0f607ec0ad024b.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/a/5af88aa558b53d740c7de15adc4872e59eceecff.png)
2. Client  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/9/b998862df4cbedd4870b76d9fbbb7a861e91e9dd.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/8/28e54f7c819df159c5d1bec7836deef232dc847e.png)  
Then this is my organization’s connections:  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/9/7/97e1b9d97982d410914c2c5300ddc54f1d4d836b.png)  
Then this is the organization’s login, I was only expecting a username and password input in the admin application since the only enabled connection is a database connection.  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/3/d3e6cd997513336908711230d77809f3b59ca436.png)

Is there something that I’m missing or misunderstood?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 2, 2022, 8:19pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/5 "2022-12-02T20:19:28Z")

</div>

Hi @jeeann,

Thank you for your reply.

The setup snapshots you shared look correct. 👍

> [@jeeann](#):
>
> Then this is the organization’s login, I was only expecting a username and password input in the admin application since the only enabled connection is a database connection.

First, if you need to login into different applications with an Organization, you will need to specify the corresponding **client\_id** and **redirect\_uri** in the request:

```auto
https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    state={state}&
    organization= YOUR_ORG_ID

```

And if you need to modify the text on the login page, you can do so by [Customizing the New Universal Login Text Prompts](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts).

Is there anything else I can help you with?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![jeeann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeeann/32/25904_2.png) [@jeeann](https://community.auth0.com/u/jeeann)\
**Post date:** [December 5, 2022, 2:38pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/6 "2022-12-05T14:38:41Z")

</div>

Hi @rueben.tiow ,  
One last thing, is there a way to hide the Criipto/NemID button in the organization login without having to remove the Criiptio NemID connection in the organization?

Thanks,  
Jee Ann

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 5, 2022, 5:32pm UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/7 "2022-12-05T17:32:02Z")

</div>

Hi @jeeann,

Thank you for your response.

> [@jeeann](#):
>
> is there a way to hide the Criipto/NemID button in the organization login without having to remove the Criiptio NemID connection in the organization?

There is only one option is to specify the Connection Name in the `/authorize` request to “hide” all other connections.

```auto
https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    state={state}&
    organization= YOUR_ORG_ID&
    connection=CONNECTION_NAME

```

Apart from this approach, there isn’t another way to “hide” connections unless they are turned off.

I hope this helps!

Please let me know if there’s anything else I can do to help.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![jeeann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeeann/32/25904_2.png) [@jeeann](https://community.auth0.com/u/jeeann)\
**Post date:** [December 6, 2022, 8:20am UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/8 "2022-12-06T08:20:42Z")

</div>

Hi @rueben.tiow ,  
I’ll give this a try, thank you so much for your help.

Thanks,  
Jee Ann

---

<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:** [December 20, 2022, 8:20am UTC](https://community.auth0.com/t/customize-connection-in-organization-based-on-the-applications-client-id/95373/9 "2022-12-20T08:20:48Z")

</div>

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