Change Azure AD source of authority

VIBNF 26 Reputation points


I have the exact opposite question to this

I want to change the authority source from Local Windows Server to Azure AD. I do not have access to AD Connect and so I cannot uninstall it. I simply want to change the authority so that users can log in to O365. At present, those users who have the local server as the authority get the error 'No Microsoft Azure AD Connect Authentication Agent was found'.


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,600 questions
0 comments No comments
{count} vote

Accepted answer
  1. AmanpreetSingh-MSFT 56,506 Reputation points

    Hi @VIBNF ,

    This error occurs if you have Pass Through Authentication (PTA) enabled for your tenant and there is no PTA Agent available to serve the request. Since you do not have access to AD Connect server, you would need to download the Authentication Agent software and install it on any computer that you want to use for Disabling PTA. It can be a Windows 10 device as well. Open elevated PowerShell and navigate to "C:\Program Files\Microsoft Azure AD Connect Authentication Agent" path and run below commands:

    1. Import-Module .\Modules\PassthroughAuthPSModule
    2. Get-PassthroughAuthenticationEnablementStatus -Feature PassthroughAuth
    3. When prompted for credentials, enter Global Administrator credentials.
    4. Disable-PassthroughAuthentication -Feature PassthroughAuth

    This will disable PTA for the tenant and you will not get No Microsoft Azure AD Connect Authentication Agent was found error.

    Now to change Source of Authority to Azure AD, you need to run below command:

    1. Connect-MsolService and sign-in using Global Administrator account.
    2. Set-MsolDirSyncEnabled -EnableDirsync $False

    After running this cmdlet, you should be able to manage/modify/delete synced accounts via Azure AD.


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful