
Hi @Temuca ,
Regarding the permanent retention of the former user's OneDrive data, currently, there are only two methods available.
- Access a former user's OneDrive documents
Give yourself access to their OneDrive, and then move the files you want to keep.
- In the admin center, go to the Users > Active users page.
- Select the user.
- On the user properties page, select OneDrive. Under Get access to files, select Create link to files.
- Select the link to open the file location. Download the files to your computer, or select Move to or Copy to to move or copy them to your own OneDrive or to a shared library.
And you can also grant access to another user to access a former employee's OneDrive.
For more information, please refer to:
- Restore user data
If the user was deleted within 30 days, you can restore the user and all their data from the Microsoft 365 admin center. To learn how, see Restore a user in Microsoft 365. If you deleted the user more than 30 days ago, the user will no longer appear in the Microsoft 365 admin center, and you'll need to use PowerShell to restore the OneDrive.
- Download the latest SharePoint Online Management Shell.
- Connect to SharePoint as a global admin or SharePoint admin in Microsoft 365. To learn how, see Getting started with SharePoint Online Management Shell.
- Determine if the OneDrive is available for restore.
- If you know the URL of the OneDrive, run the following command:
A user's OneDrive URL is based on their username. For example,Get-SPODeletedSite -Identity <URL>
https://contoso-my.sharepoint.com/personal/user1_contoso_com
. You can find their username on the Active users (or Deleted users) page in the Microsoft 365 admin center. - If you don't know the URL of the deleted OneDrive, run the following command:
Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url
- If the OneDrive appears in the results, it can be restored.
- If you know the URL of the OneDrive, run the following command:
- Restore the OneDrive to an active state:
Restore-SPODeletedSite -Identity <URL>
- Assign an administrator to the OneDrive to access the needed data:
Set-SPOUser -Site <URL> -LoginName <UPNofDesiredAdmin> -IsSiteCollectionAdmin $True
For more information, please refer to:
https://learn.microsoft.com/en-us/sharepoint/restore-deleted-onedrive
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.