Forum Discussion
Convert On-Prem AD Users from Office 365/Azure AD to In-Cloud accounts
Brent is correct if you only need to convert a few accounts. When you recover the deleted user, it will ask you to set a new password since it is now "In Cloud" and not managed by your local AD sync.
It should also reconnect to the previously associated mailbox. You will have to provide the new temp password to your user and have them change at first logon.
If you need to convert all to cloud, then the disabling of AAD Sync is the way to go.
If you only need to do this for a subset of accounts, you can simply move users to an OU which is not synced (assuming that you've configured to sync only selected OUs). After the sync runs, users are "deleted" from cloud. Run the following command to restore the users.
Get-MsolUser -ReturnDeletedUsers | Restore-MsolUser
With this scenario, users are restored "as they were", so there is no need to give a new password. However, you should notice that if users are changing their passwords, they must follow the Office 365 password policy (8-16 characters etc.).
- somajiFeb 02, 2023Brass Contributor
We used the procedure to 'move AD users to an OU which was not selected for sync in ADSync utility; hence deleting the user and restoring them on AzureAD through the Admin portal.
As each user was migrated, ADSync uitility (as expected) had an error for each user:
This error indicates that a deleted object was recovered from the recycle bin in Azure AD before Azure AD Connect was able to confirm its deletion. Please delete the recovered object in Azure AD to fix this issue.I imagine this is for each user in AzureAD for which the compliment account was not found in AD.
Is there a solution to this issue?
- Jessie_HernandezMar 02, 2023Brass ContributorPrior to restoring the deleted user you have to do one more Delta Run in AAD Connect. The Delta run will import the AAD directory with the user in a deleted state. After that run you can then safely restore the user in AAD.
- Michael DonovanApr 10, 2018Brass Contributor
This method worked great for me. We are converting our shared mailboxes to be native in the cloud (for a lack of a better. It pulls over everything...email aliases, forwarders, delegations etc. Great stuff!