A Microsoft file hosting and synchronization service.
Hello @Arefe Nami,
Welcome to the Microsoft Q&A forum, and thank you for taking the time to share these details with me. From what you described, it seems you are trying to restore the OneDrive of a deleted user, but now you and your team are unable to access her documents. Since it has already been about 30 days since the account was removed, the OneDrive may still be recoverable, but we’ll need to check a few things first.
Please help me to check the user's OneDrive status by following these steps:
- Go to your SharePoint admin center
- Extend Reports on the left panel > Select OneDrive accounts
- Click on View more details
This page will show a list of OneDrive accounts including deleted users or users without licenses. Please check for the deleted user in this list.
(1) If the account appears, scroll to the right and locate the URL column, right‑click the URL and copy the full OneDrive link for the next steps.
(2) If the user is not showing, please help me try to run PowerShell as administrator and paste those commands:
- Install the SharePoint module: Install-Module -Name Microsoft.Online.SharePoint.PowerShell
- Connect to your tenant: Connect-SPOService -Url https://tenant-admin.sharepoint.com (Replace tenant to be your tenant domain, or you can take the URL from SharePoint admin center)
- Get the deleted user URL: Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url
- Please search for the user link if it shows here and copy the URL
- Restore the OneDrive to an active state: Restore-SPODeletedSite -Identity "URL" (Replace URL to the OneDrive link you have copied)
After completing (1) and (2), please help me to run PowerShell command to grant permission to access the site:
Set-SPOUser -Site "URL" -LoginName "youremailaddress" -IsSiteCollection
(Please replace OneDriveURL with the link you copied earlier, and youremailaddress with your actual email address.)
Reference KB: Restore a deleted OneDrive - SharePoint in Microsoft 365 | Microsoft Learn
After the commands complete, please try opening the OneDrive URL once more. If everything works, you should now be able to access the site without any errors. At that point, please backing up all important data and moving it to another safe location. This will ensure that you and your team can continue accessing the documents without further interruption.
If you run into any errors or anything doesn’t behave as expected, please feel free to share a screenshot of the issue. Just remember to hide any personal details (like email addresses) before sending it.
Looking forward to your update.
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.