# Create multiple email/password connections

**URL:** <https://community.auth0.com/t/create-multiple-email-password-connections/91282>\
**Category:** Get Help\
**Tags:** api, login, auth0\
**Created:** [September 26, 2022, 8:52am UTC](https://community.auth0.com/t/create-multiple-email-password-connections/91282 "2022-09-26T08:52:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev43](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dev43/32/34278_2.png) [@dev43](https://community.auth0.com/u/dev43)\
**Post date:** [September 26, 2022, 8:52am UTC](https://community.auth0.com/t/create-multiple-email-password-connections/91282/1 "2022-09-26T08:52:55Z")

</div>

Hi there,

**Our use-case**  
We have a multi tenant B2B application. Right now we are implementing Auth0 as IDP. For each of our B2B customers we will have a separate Auth0 Organisation. We would like to also enable each Company to setup _their own password policy on a organisation level for each email/password connection_.

**Our Problem**  
It does not seem to be possible to create a new email/password connection through the sdk/management [api](https://auth0.com/docs/api/management/v2#!/Connections/post_connections) as each created connection ends up as a “password-less connection” (BTW: we are using the createConnection function from the node [api](https://auth0.github.io/node-auth0/ConnectionsManager.html#create))

```auto
const connection = await this.management.createConnection({
  name: "random-name",
  strategy: "email",
})

```

**The question**  
How can we programatically setup a new email/password connection for each organisation?

Best,  
John

---

<div class="post-metadata">

**Author:** ![jeff.ishar1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff.ishar1/32/33655_2.png) [@jeff.ishar1](https://community.auth0.com/u/jeff.ishar1)\
**Post date:** [September 26, 2022, 8:55am UTC](https://community.auth0.com/t/create-multiple-email-password-connections/91282/2 "2022-09-26T08:55:52Z")

</div>

Hi @dev43

Welcome to Auth0 community.

In the code above change the `strategy: "email"` to `strategy: "auth0"` This will create a new database connection in your tenant.

Hope this helps

Thanks  
Jeff

---

<div class="post-metadata">

**Author:** ![dev43](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dev43/32/34278_2.png) [@dev43](https://community.auth0.com/u/dev43)\
**Post date:** [September 26, 2022, 9:11am UTC](https://community.auth0.com/t/create-multiple-email-password-connections/91282/3 "2022-09-26T09:11:50Z")

</div>

@jeff.ishar1 thanks for the quick repose. Problem solved 🙂

Maybe forward to your team to include a info page what strategies are available and what they do.

E.g. you have `auth0-oidc` , `auth0`, `oauth1` , `oauth2`, etc. and nobody knows what they do or are. ([Link to Docs](https://auth0.com/docs/api/management/v2#!/Connections/post_connections)) and a simple tooltip with some detail would be a huge improvement

---

<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:** [October 10, 2022, 9:12am UTC](https://community.auth0.com/t/create-multiple-email-password-connections/91282/4 "2022-10-10T09:12:18Z")

</div>

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