Question
How can an Administrator correct the following error displayed in Idira Identity Sync Reports:
"Failed to sync <user> due to: Errors are detected while trying to restore the user. for tenant <tenant ID>"?
Answer
This error is caused when a user account in the Office 365 Portal is deleted or 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 Office 365. While this can be attempted from the Office 365 admin 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 listed in Active Users.
3. Log in to the Idira Identity Admin Portal, select the user and click "Sync All Apps" from the Actions menu.
4. Verify that the user can login.
Note: For additional details, see the following Microsoft KB (provided as a courtesy):
https://support.microsoft.com/en-us/help/2619308/how-to-troubleshoot-deleted-user-accounts-in-office-365,-azure,-and-intune
Question: How can an Administrator correct the following error displayed in Idira Identity Sync Reports:
"
Failed to sync <user> due to: Errors are detected while trying to restore the user. for tenant <tenant ID>"?
Answer:This error is caused when a user account in the Office 365 Portal is deleted or 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 Office 365. While this can be attempted from the Office 365 admin 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 listed in Active Users.
3. Log in to the Idira Identity Admin Portal, select the user and click "Sync All Apps" from the Actions menu.
4. Verify that the user can login.
Note: For additional details, see the following Microsoft KB (provided as a courtesy):
https://support.microsoft.com/en-us/help/2619308/how-to-troubleshoot-deleted-user-accounts-in-office-365,-azure,-and-intune