Object that's deleted from the on-premises Active Directory isn't removed from Windows Azure AD after directory synchronization

Article translations Article translations
Article ID: 2709902 - View products that this article applies to.
Expand all | Collapse all

PROBLEM

Consider the following scenario:
  • You have an on-premises Active Directory object.
  • Directory synchronization is used to sync the Active Directory object to Windows Azure Active Directory (Windows Azure AD). This creates a linked object.
  • You delete the on-premises Active Directory object.
In this scenario, the linked object isn't removed from Windows Azure AD.

CAUSE

This issue may occur if one of the following conditions is true:
  • Directory synchronization hasn't yet occurred.
  • Directory synchronization unexpectedly failed to delete a specific cloud object and results in an orphaned Windows Azure AD object.

SOLUTION

To fix this issue, follow these steps:
  1. Manually run a directory synchronization update. For more info about how to do this, go to the following Microsoft website:

    Force directory synchronization
  2. Check that directory synchronization occurred correctly. For more info about how to do this, go to the following Microsoft website:

    Verify directory synchronization
  3. If sync is working correctly but the Active Directory object deletion is still not propagated to Windows Azure AD, you can manually remove the orphaned object by using one of the following Windows Azure Active Directory Module for Windows PowerShell cmdlets:
    Remove-MsolContact
    
    Remove-MsolGroup
    
    Remove-MsolUser
    For example, to manually remove orphaned user ID john.smith@contoso.com that was originally created by using directory synchronization, you would run the following cmdlet:

    Remove-MsolUser –UserPrincipalName John.Smith@Contoso.com

MORE INFORMATION

For more info about Windows PowerShell cmdlets, go to the following Microsoft website:
Windows PowerShell cmdlet descriptions

Still need help? Go to the Office 365 Community website or the Windows Azure Active Directory Forums website.

Properties

Article ID: 2709902 - Last Review: October 30, 2013 - Revision: 13.0
Applies to
  • Windows Azure
  • Microsoft Office 365
  • Microsoft Office 365 for enterprises (pre-upgrade)
  • Microsoft Office 365 for education  (pre-upgrade)
  • CRM Online via Office 365 E Plans
  • Windows Azure Recovery Services
Keywords: 
o365 o365a o365e o365062011 pre-upgrade o365022013 after upgrade o365m KB2709902

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com