'Azure AD keeps sync a full deleted AD-User
We created a test-user in AD and he got sync. After all the tests we have done, we didnt need him anymore. I deleted the User from AD and from the "Deleted-Users" (AD-hard deleted). I cannot find him neither in AD nor with Powershell. I deleted them even on Azure AD Dashboard (hard delete) and with Powershell (remove-msoluser), but after the Sync they keep getting back. How can be possible, to keep synching an user, wo doenst exist anymore? Does anybody have an idea?
Thanks in Advice. :)
Solution 1:[1]
You can try permanently delete a user from your organization without waiting the 30 days for automatic deletion. A permanently deleted user can't be restored by you.
Go to azure portal -> Users ->select Deleted users -> Delete permanently.
Otherwise, try to Remove a user from the Recycle Bin as below cmdlet, It permanently removes a deleted user from the recycle Bin. Even after you sync.
Remove-MsolUser -UserPrincipalName [email protected] -RemoveFromRecycleBin
If its still licensed, you can remove all the licenses before proceeding.
Remove-MsolUser -UserPrincipalName [email protected] -Force
For more information in detail, please refer below links:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

