When a user account is deleted in Microsoft 365, it remains in the retention period for a specified number of days. By default, this period is set to 30 days. During this time, the shared content can still be accessed by other users. At the end of the time, the OneDrive will be in a deleted state for 93 days and can only be restored by a global or SharePoint admin.
To restore a deleted OneDrive when the deleted user no longer appears in the Microsoft 365 admin center, follow the simple steps given below:
- Download the latest SharePoint Online Management Shell.
- Connect to SharePoint as a global admin or SharePoint admin in Microsoft 365.
-
Now, you need to determine if the OneDrive is available for restore:
-
If you know the URL of the OneDrive, run the following command:
Get-SPODeletedSite -Identity <URL>
-
If you don't know the URL of the OneDrive, run this command:
Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url
- If the OneDrive appears in the results, it can be restored.
-
Restore the OneDrive to its active state:
Restore-SPODeletedSite -Identity <URL>
-
Assign an admin to the OneDrive to access the required data:
Set-SPOUser -Site <URL> -LoginName <UPNofDesiredAdmin> -IsSiteCollectionAdmin $True
Get detailed insights into OneDrive for Business changes with M365 Manager Plus:
M365 Manager Plus is an extensive Microsoft 365 tool used for reporting, managing, monitoring, auditing, and creating alerts for critical activities. With this solution, Microsoft 365 admins can get valuable insights into OneDrive consumption, audit file/folder activities and perform several other administrative tasks which in turn, would aid efficient management. Here's all you can do with M365 Manager Plus:
- Create custom alerts for admin/user activities and receive real-time email alerts with meticulous details on the action that triggered the alert.
- Get insightful reports on OneDrive activities such as files accessed, file modifications, uploads, downloads, sharing activities, user activities and many more.
- Track file and folder activities in OneDrive for Business, in real time. You can also create your own auditing profile to scrutinize specific operations.
- Monitor the health status (current status of the service and details about service disruptions and outages) and performance of OneDrive for Business and SharePoint Online.
So, what are you waiting for? Hurry up and download the trial version here.