# Enabling Azure AD tenants?

**URL:** <https://forum.ansible.com/t/enabling-azure-ad-tenants/34897>\
**Category:** AWX Project\
**Tags:** azure\
**Created:** [March 31, 2021, 2:18pm UTC](https://forum.ansible.com/t/enabling-azure-ad-tenants/34897 "2021-03-31T14:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Safanyuk](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@David\_Safanyuk](https://forum.ansible.com/u/David_Safanyuk)\
**Post date:** [March 31, 2021, 2:18pm UTC](https://forum.ansible.com/t/enabling-azure-ad-tenants/34897/1 "2021-03-31T14:18:52Z")

</div>

Hey all.

Has anyone been able to enable Azure AD tenants?

the current authorize URL is  
[https://login.microsoftonline.com/common/oauth2/authorize](https://login.microsoftonline.com/common/oauth2/authorize?client_id=)

But we need to use  
[https://login.microsoftonline.com/XXXTENANTIDXXX/oauth2/v2.0/authorize](https://login.microsoftonline.com/906aefe9-76a7-4f65-b82d-5ec20775d5aa/oauth2/v2.0/authorize)

It looks like an extra backend: _ **‘social\_core.backends.azuread\_tenant.AzureADTenantOAuth2’** _

[https://python-social-auth.readthedocs.io/en/latest/backends/azuread.html#tenant-support](https://python-social-auth.readthedocs.io/en/latest/backends/azuread.html#tenant-support)

Simply adding that line to settings.py didn’t magically work, so i’m wondering if anyone has had better luck!

TIA!
