Disable all but one connection when creating a new application

Giving customers the ability to use auth0 within our SaaS for their customers so I’m creating new applications and databases via the API.

One of the challenges I’m running into is creating a application. The new application has all the connections enabled under the connections tab here:

https://manage.auth0.com/dashboard/us/[brand]/applications/[client_id]/connections

It seems like the only way to disable all those connections is by hitting

PATCH	/api/v2/connections/{id} 
"enabled_clients": [
    "..."
],

Is there a way to set connections via an application that I’m overlooking? :crossed_fingers: Something like:

$this->management->clients()->update($client_id, [
     'enabled_connections' => [],
]);

Thanks!

Hi @gjreasoner,

Welcome to the Community!

If you go to your Tenant Settings > Advanced, you can toggle off all connections on new applications.

Then, new apps will have no connections enabled until you configure them. Will that solve this for you?

1 Like

Exactly what I needed, thank you Dan!

1 Like

No problem! Glad we found a solution!