Break link between user active directory account and Azure AD account

Jon Mercer 1,016 Reputation points
2023-02-21T01:42:09.7766667+00:00

We are migrating people off of Active Directory to just Azure Active Directory to retire our domain controllers. Currently they are synced with Active Directory Connect.

How do I break the sync between the two for individual users, since I will be phasing people over to Azure AD only in groups since we have a utility, we are phasing out that most everyone is using and requires the domain controller for authentication.

I know I can't delete the account in AD, or the Azure AD connect group policy will delete the Azure AD account also.

I saw mention in another article about doing the following, but it didn't really make sense on how to pick the individual user. I am thinking it is more of a disabled AD Connect completely command.

Connect-MsolService and sign-in using Global Administrator account.

Set-MsolDirSyncEnabled -EnableDirsync $False

If I go into Azure AD Connect, and under Domain and OU filtering, uncheck a group, will that kill the sync, without deleting the Azure AD account? Would be nice if I could do individual users, but this would mostly work.

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

Accepted answer
  1. Sandeep G-MSFT 20,736 Reputation points Microsoft Employee
    2023-02-27T15:55:49.18+00:00

    @Jon Mercer

    You cannot break the link between on-premises user accounts and Azure AD user accounts in groups. Only option is to disable dirsync for entire tenant by using the same command that you have mentioned as below.

    Set-MsolDirSyncEnabled -EnableDirsync $False

    If you go into Azure AD Connect, and under Domain and OU filtering, uncheck a group, this will delete the group from Azure AD as well. This approach will not suit for your requirement.

    Let me know if you have any further questions.

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

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.