Home > Restore and Recover Your Data > Microsoft Entra ID > Restore Users
Export to PDFTo restore users, follow the steps below:
*Note: Before you restore a temporarily deleted user, ensure the Cloud Backup for Azure service app has the Global Administrator role.
Go to the Restore page and click the Microsoft Entra ID tile.
Click the Recovery point tile.
In the restore wizard, a calendar displays all the data recovery points. You can choose whether to display the finished with the exception jobs in the calendar by selecting the Include jobs with only partial backup data option.
Hover over the data recovery point to view the job details, including the job status, job start time, scope name, scope ID, job ID, backup size, and the number of objects in a backup, and click the data recovery point that you want to use in the calendar.
Select User from the object type filter. You can use Name or User principal name to find the user. You can also manage the columns to adjust the view of users.
Select the user that you want to restore and then click the Restore button. You can view the group information in the View properties step and then click Next. You can also choose to download the user properties and use the script in the downloaded package to automatically add the users to an on-premises active directory. For details, refer to Download User Properties.
*Note: If you select multiple users, you can directly configure restore options following the steps below in the Restore users panel.
In the Restore options step, you can expand the list to view all the selected users, choose where you would like to restore the user, and then select Merge, Overwrite, or Skip as the conflict resolution.
You can enter a description for this restore job for further reference.
Click Next.
In the Destination step, select a destination app profile. Configure the Advancedoptions if you select Merge as the restore options for groups, to ensure that the properties in the relationship backed up at the recovery point can be added to the target group.
In the Password field, you can enter a default password for the users being permanently deleted and choose whether to force these users to change their password when they first sign in.
Click Next.
Review the restore settings in the Overview step and click Restore to run the restore job.
When restoring users (Restore Users), you can click Download properties to directly export the user information of the selected users to a local location. The downloaded ZIP file contains a PowerShell script to help you automatically add the users according to the exported user properties to an on-premises active directory. Follow the steps below:
Extract the ZIP file and open the BulkUserCreated.ps1 file.
Update the value for $Domain, $UserOu, and $defaultPassword attributes.
Save the changes and exit the file.
Right-click the BulkUserCreated.ps1 file, and select Run with PowerShell from the drop-down list.
The result will be generated in the same folder, or you can check the users in your environment.