question

SouthClimber-0653 avatar image
0 Votes"
SouthClimber-0653 asked ·

Unable to delete Synced user form AAD

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


azure-active-directoryazure-ad-connect
error1.jpg (15.8 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

@SouthClimber-0653 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.






· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It's working. Thank you for your help.

0 Votes 0 ·