Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-8316: How do I correct "Failed to sync user. Errors are detected while trying to restore the user"?

App Access Service ,  

7 March,17 at 07:54 PM

Applies to:  Centrify Identity Service, App Edition


How can an Administrator correct an error in the Centrify Sync Reports that state, "Failed to sync <user> due to: Errors are detected while trying to restore the user. for tenant <tenant ID>"? 


This error is caused when a user account on the O365 Portal is deleted/in the recycle bin.  Trying to sync the user account (re-provision) results in the error.

To fix the issue, an Administrator will need to do the following;

1.  Restore the user account in O365.  While this can be attempted from the O365 user interface, it is recommended to use Azure Active Directory PowerShell:
$cred = get-credential 
Note: When you're prompted, enter your Office 365 credentials.
Connect-MSOLService -credential:$cred 
Get-MsolUser –ReturnDeletedUsers 
Restore-MsolUser -UserPrincipalName <string> -AutoReconcileProxyConflicts -NewUserPrincipalName <string>
Note:  <string> is the value for UserPrincipalName given for the user in the previous command

2.  Check the Office 365 Portal to ensure the user account is now in Active Users.

3.  In the Centrify Admin Portal, run a "Sync All Apps" for the affected user.

4.  Verify that the user can login.

Note:  For additional details, see the following Microsoft KB (provided as a courtesy):,-azure,-and-intune   

For additional information not covered in this guide or troubleshooting assistance, please review Centrify Online Help or visit the Customer Support Portal at

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.