# How to configure Auth0 to authenticate with other companies Azure Active Directory?

**URL:** <https://community.auth0.com/t/how-to-configure-auth0-to-authenticate-with-other-companies-azure-active-directory/109945>\
**Category:** Get Help\
**Tags:** reports, support-center\
**Created:** [June 26, 2023, 11:57am UTC](https://community.auth0.com/t/how-to-configure-auth0-to-authenticate-with-other-companies-azure-active-directory/109945 "2023-06-26T11:57:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew3386](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrew3386/32/46118_2.png) [@Andrew3386](https://community.auth0.com/u/Andrew3386)\
**Post date:** [June 26, 2023, 11:57am UTC](https://community.auth0.com/t/how-to-configure-auth0-to-authenticate-with-other-companies-azure-active-directory/109945/1 "2023-06-26T11:57:19Z")

</div>

I have Auth0 configured with Social Connections \> Microsoft Account.

This is linked through Client ID/secret to a Microsoft Azure Active Directory tenant in my Microsoft organization, with an App Registration set to allow:

**Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)** _All users with a work or school, or personal Microsoft account can use your application or API. This includes Office 365 subscribers[.](https://www.myhrkp.me/)_

When I log in through my app, I can authenticate successfully using my personal account eg. [blah.blah@gmail.com](mailto:blah.blah@gmail.com)

However, when I try to authenticate with my work account blah.blah@myawesomecompany.ai, which is managed with an Azure Active Directory, it fails with

_“That Microsoft account doesn’t exist. Enter a different account or get a new one.”_:

I thought given the Microsoft settings it would allow it to connect.

1. How can I make Auth0 allow Microsoft authentication with other company’s existing Azure Active Directory?
2. Also - can I configure it to limit that feature to specific companies AAD eg. those I have specifically nominated?
3. Is there a way to configure this without having to upgrade to Auth0 Enterprise?

---

<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 27, 2023, 12:11pm UTC](https://community.auth0.com/t/how-to-configure-auth0-to-authenticate-with-other-companies-azure-active-directory/109945/3 "2023-06-27T12:11:48Z")

</div>

Hi @Andrew3386,

Welcome to the Auth0 Community!

It sounds like there is some confusion here about the difference between Azure AD and Microsoft Social connections.

The Azure AD connection integrates with an enterprise Azure AD instance, whereas the MS social connection connects with the global Microsoft identity platform (like Xbox, private Office accounts, etc).

To address your questions:

> [@Andrew3386](#):
>
> How can I make Auth0 allow Microsoft authentication with other company’s existing Azure Active Directory?

You can accomplish this with an Azure AD Connection. doc: [Connect Your App to Microsoft Azure Active Directory](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2)

> [@Andrew3386](#):
>
> Also - can I configure it to limit that feature to specific companies AAD eg. those I have specifically nominated?

Yes, it is limited to a specific domain.

> [@Andrew3386](#):
>
> Is there a way to configure this without having to upgrade to Auth0 Enterprise?

As it currently stands, the B2B Essentials plan includes 3 enterprise connections. See more here:

> **[Pricing - Auth0](https://auth0.com/pricing)**
>
> Powerful authentication and authorization for your apps and APIs. Flexible pricing for developers and enterprises incl. a free forever dev plan.

Hope this helps!

---

<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:** [July 11, 2023, 12:12pm UTC](https://community.auth0.com/t/how-to-configure-auth0-to-authenticate-with-other-companies-azure-active-directory/109945/4 "2023-07-11T12:12:13Z")

</div>

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