# Azure Active Directory SSO Login

**URL:** <https://community.auth0.com/t/azure-active-directory-sso-login/18951>\
**Category:** Get Help\
**Tags:** sso, login\
**Created:** [December 11, 2018, 4:14pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951 "2018-12-11T16:14:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kandarprakeshbhai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kandarprakeshbhai/32/10249_2.png) [@kandarprakeshbhai](https://community.auth0.com/u/kandarprakeshbhai)\
**Post date:** [December 11, 2018, 4:14pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/1 "2018-12-11T16:14:45Z")

</div>

I have registered my app with azure active directory. I have followed all the steps that mentioned in below link.

> **[Connect Your App to Microsoft Azure Active Directory - Auth0 Docs](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azure-active-directory/v2)**
>
> Learn how to connect your app to Microsoft Azure Active Directory using an enterprise connection.

After setting up everything, When I click on Try button in auth0 , it works. But does not work when I try to login with my app. Do I have to add anything in my code to get it working?

---

<div class="post-metadata">

**Author:** ![jerdog](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerdog/32/11231_2.png) [@jerdog](https://community.auth0.com/u/jerdog)\
**Post date:** [December 11, 2018, 9:17pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/2 "2018-12-11T21:17:52Z")

</div>

It would be helpful to see sample code so that we can see what might be happening… maybe any console logs in the browser as well

---

<div class="post-metadata">

**Author:** ![kandarprakeshbhai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kandarprakeshbhai/32/10249_2.png) [@kandarprakeshbhai](https://community.auth0.com/u/kandarprakeshbhai)\
**Post date:** [December 11, 2018, 10:09pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/4 "2018-12-11T22:09:59Z")

</div>

@jerdog  
There is no error on console. But when I try to login with my company account, it says account does not exist. When I try in auth0, it is working with company account. I am using AAD so that I can use my outlook with company domain. For personal account with outlook, login works fine. I hope you got it what I am trying to say.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 13, 2018, 4:01pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/5 "2018-12-13T16:01:20Z")

</div>

I want to make sure I understand the situation correctly @kandarprakeshbhai , when/where are you receiving the error that your account does not exist? Are you seeing any errors in the logs when the account is rejected? In a direct message to me, can you include the account you’re using that says it does not exist along with your tenant name? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 18, 2018, 2:19pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/6 "2018-12-18T14:19:37Z")

</div>

Hey there @kandarprakeshbhai, following up to see if we could get additional information so we can better help you overcome this challenge. I feel with the enough data on the subject we can conquer this hurdle together!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [January 2, 2019, 2:19pm UTC](https://community.auth0.com/t/azure-active-directory-sso-login/18951/7 "2019-01-02T14:19:38Z")

</div>

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