Unable to delete Synced user form AAD

Prajith Karumathil 147 Reputation points
2020-02-03T09:56:59.73+00:00

I haved removed ADconnect Server from Azure , but missed to delete AzureAdconnect related user account from AAD. Now when I try to remove I get Delete User Failed Error (PF). Please let me know ho do I delete this.2514-error1.jpg

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

Answer accepted by question author
  1. AmanpreetSingh-MSFT 56,956 Reputation points Moderator
    2020-02-03T10:51:00.757+00:00

    @Prajith Karumathil You need to disable Directory Synchronization for the tenant. Use below PowerShell cmdlets for this purpose:

    1. Run Install-Module MSOnline. (If the module is not already installed).
    2. Run Connect-MsolService and login via Global Admin account of your tenant.
    3. Run Set-MsolDirSyncEnabled -EnableDirSync $false to disable Directory Synchronization.

    Once it is disabled, you should be able to delete the synced accounts.

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

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


0 additional answers

Sort by: Most helpful

Your answer

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