When a user is deleted in Microsoft Entra ID, the account is not immediately removed permanently. Instead, it is placed in a soft-deleted state, allowing administrators to restore the user if needed.
Restoring users helps recover:
Microsoft Entra allows administrators to restore users using both the Entra Admin Center and Microsoft Graph PowerShell.
Follow these steps to restore a deleted user.
The user account will be restored to the active users list.
Administrators can restore users using Graph PowerShell.
Example
Restore-MgDirectoryDeletedItem -DirectoryObjectId "<UserObjectId>"
This command restores a soft-deleted user back to the active directory.
| Parameter | Description |
|---|---|
| DirectoryObjectId | Object ID of the deleted user |
Administrators restore users when:
Restoring users in Microsoft Entra ID allows administrators to recover deleted accounts quickly and efficiently.
By using the Entra Admin Center for quick recovery or Graph PowerShell for automation, administrators can ensure minimal disruption when user accounts are accidentally removed.
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Your Site Name. All Rights Reserved. Design by HTML Codex