How to Disconnect AD Connect from Local AD

Tommy814826 21 Reputation points
2021-03-22T14:14:32.727+00:00

I am trying to edit some users in M365 and it says the user is synchronized with our local AD and that some details can only be edited through local AD.
Our local AD does not exist anymore. How can I get Azure AD to stop trying to sync with the local AD?

When I choose Manage Azure AD Cloud Sync from the Azure AD Connect section, there are no configurations listed.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2021-03-22T16:02:42.563+00:00

    Hello @TommyODonnell-8148 · Thank you for reaching out.

    For this purpose you need to turn off directory synchronization.

    1. Install the latest version on MSOnline module.
    2. Run Connect-MsolService and sign in using global administrator account.
    3. Run Set-MsolDirSyncEnabled -EnableDirSync $false to disable directory synchronization.

    Once DirSync is disabled, you will be able to update/edit/delete all synced accounts directly from cloud.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2021-03-22T16:02:31.137+00:00

    Connect via MSOnline PowerShell (https://www.powershellgallery.com/packages/MSOnline/) and run the following cmdlet:

    Set-MsolDirSyncEnabled -EnableDirSync $false
    
    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.