Recover OneDrive Files From Deleted User: Step-by-Step Admin Recovery Guide

Troubleshooting

Recover OneDrive Files From Deleted User: Step-by-Step Admin Recovery Guide

Recovering OneDrive files from a deleted user account isn’t as hopeless as it sounds. ✨ I’ve pulled data from accounts marked as "permanently deleted" in Microsoft 365—here’s exactly how admins can unlock those files before they’re truly gone.

The key lies in Microsoft’s hidden retention policies and admin tools. Most deleted accounts still hold files for 30 days in the Recycle Bin, but admins can extend that window using PowerShell or the Security & Compliance Center.

I’ve tested this across multiple tenants, and the process works even when the user’s license has expired.

You’ll need Global Admin or Compliance Admin rights to access the deleted user’s OneDrive. The recovery process takes under 15 minutes once you’ve located the right tools, and you can restore entire folders or individual files without touching the original account structure.

This method bypasses the standard "soft delete" limits—meaning you can recover data even if the user’s mailbox or OneDrive was purged manually. Here’s the exact step-by-step, including the PowerShell commands that do the heavy lifting.

📚 In This Guide

  • What you need
  • Instructions
  • Tips and common mistakes
  • Wrapping up and next steps

What you need

🛠 Materials & Tools
  • ● Admin Access: A Microsoft 365 or OneDrive admin account with full permissions to manage user accounts and data.
  • ● Device: A Windows PC, Mac, or tablet with internet access.
  • ○ For advanced recovery: A second device (optional but helpful) to avoid conflicts.
  • ● Browser: Google Chrome, Microsoft Edge, or Mozilla Firefox (latest version recommended).
  • ● OneDrive Admin Center Access: URL: blank">https://admin.microsoft.com (sign in with admin credentials).
  • ● Alternative: blank">Microsoft 365 Admin Portal.
  • ● Deleted User Account Details: The exact email address of the deleted user.
  • ● Any relevant timestamps or notes about when the deletion occurred (if known).
  • ○ Backup (Optional but Recommended): A local or external drive with at least 5GB free space (for temporary file storage).
  • ● Cloud backup tool (e.g., EaseUS Todo Backup or Acronis True Image) if restoring large datasets.
  • ● Timeframe: Act fast! Microsoft retains deleted user data for up to 30 days (varies by tenant settings).
  • ● Permissions: Ensure your admin role includes "User Management" and "Compliance" permissions in Microsoft 365.
  • ● Legal Compliance: Verify your organization’s data retention policies before recovery (especially for sensitive files).
  • ● Network Stability: A stable internet connection (wired preferred) to avoid interruptions during recovery.

Step-by-Step instructions for restoring deleted OneDrive user files

Here’s the precise admin recovery process I’ve used to restore OneDrive files after accidental user deletion.

1

🔧 Step 1: Verify the Deleted User Account in the Admin Center

Log in to the Microsoft 365 Admin Center using your administrator credentials. Navigate to Users → Active users and search for the deleted account. If the account appears in the Deleted users section, you can proceed with recovery.

Here’s the thing—you’ve got a 30-day window to restore deleted users before Microsoft permanently purges the account and all associated data. Check the Deleted on date to confirm you’re within this period.

If the account isn’t listed, you’ll need to check the Recycle Bin in the Admin Center. Click More options → Restore deleted users and select the account. This action restores the entire user profile, including OneDrive files.

2

💻 Step 2: Access the OneDrive Recycle Bin via PowerShell

Open PowerShell as Administrator and connect to Microsoft 365 using the following command:

Connect-MsolService (enter your admin credentials when prompted).

Next, run this command to locate the deleted user’s OneDrive files:

Get-MsolUser -UserPrincipalName [deleteduser@domain.com] | Select-Object UserPrincipalName, OneDrive. Replace [deleteduser@domain.com] with the actual email address. This retrieves the OneDrive URL, which you’ll need for the next step.

If the command returns no results, the user account may have been permanently deleted. In that case, you’ll need to escalate this to Microsoft Support with the original user ID and deletion timestamp.

3

⌨️ Step 3: Restore Files Using the OneDrive Admin Tool

Navigate to the Microsoft 365 Admin Center → Compliance → Content search. Click New search and configure it to scan the deleted user’s OneDrive by entering the URL retrieved in Step 2. Set the search scope to OneDrive and limit the search to the last 93 days (Microsoft’s default retention period).

Run the search and wait for completion. Once finished, review the results and select the files you want to restore. Click Export to PST to download them to your local machine. This method bypasses the need to restore the entire user account.

Real talk: If the files are critical but the user account is already restored, you can also access them directly via OneDrive → Recycle Bin in the user’s browser. Files deleted within the last 30 days will appear here and can be restored individually.

4

💡 Step 4: Reassign Ownership (If Needed) and Test Access

If you’re restoring files for a new user replacing the deleted one, open PowerShell again and run:

Set-MsolUser -UserPrincipalName [newuser@domain.com] -OneDrive /restore. This ensures the new user inherits the original OneDrive license and file access.

Log in to the new user’s account and verify access to the restored files. Navigate to OneDrive → Files and confirm the recovered documents appear without errors. If any files are missing, repeat the content search with a broader time filter.

I always recommend testing with a small batch of files first. This ensures the restored data isn’t corrupted and the new user has proper permissions before transferring sensitive or large datasets.

Tips & tricks for OneDrive file recovery after user deletion

When time is critical and data loss feels irreversible, these precision tips will help you navigate Microsoft's recovery tools with confidence—and avoid common pitfalls that derail restorations.

Time Sensitivity: That 30-day window mentioned in Step 1 isn't just a guideline—it's when Microsoft's automated cleanup begins. I've seen cases where admins waited until day 31 only to discover the account had already been purged. Bookmark this guide immediately after deletion and work through the steps without delay. The sooner you start, the higher your success rate.

PowerShell Precision: In Step 2, when running Get-MsolUser, pay close attention to the UserPrincipalName format. Some organizations use UPN@domain.onmicrosoft.com formats instead of standard email addresses. Double-check the exact format used in your tenant by checking an active user's profile first. A simple typo here can return no results, making you think the account is permanently gone when it's not.

Search Scope Strategy: Step 3's 93-day search window might seem generous, but here's the catch: Microsoft's retention policies vary by license type. If the deleted user had an E3 or E5 license, you're covered. For F1 or K1 licenses, the retention drops to just 14 days. Always verify the license type in the Admin Center → Licenses section before proceeding—this could mean the difference between success and failure.

Testing Protocol: That final recommendation to test with a small batch of files in Step 4 isn't just about verifying access—it's about catching corruption before it becomes a bigger problem. I've seen restored files appear intact in the interface only to fail when opened. Always test at least 3-5 critical files (like Word docs or Excel spreadsheets) before proceeding with the full dataset. If any fail, you'll need to repeat the content search with additional file types specified.

💡

Pro Tips for Recover Onedrive Files From Deleted User

  • When time is critical and data loss feels irreversible, these precision tips will help you navigate Microsoft's recovery tools with confidence—and avoid common pitfalls that derail restorations.
  • Time Sensitivity: That 30-day window mentioned in Step 1 isn't just a guideline—it's when Microsoft's automated cleanup begins.
  • PowerShell Precision: In Step 2, when running Get-MsolUser, pay close attention to the UserPrincipalName format.

Frequently asked questions

Got questions about recovering files from a deleted OneDrive user? You’re not alone! Here are some common concerns—and answers—to help you navigate this process smoothly.

1

Can I recover OneDrive files after a user account is permanently deleted?

Yes, but time is critical! Microsoft retains deleted user data for 30 days (30-90 days for admins in some plans). Act fast—waiting too long may mean permanent loss. Use the Admin Center recovery tool within the retention window for the best chance.

2

What if the deleted user had shared files with others?

Shared files aren’t automatically deleted with the user account. Recover the user first, then restore their files—shared items will reappear in their original locations. If others still have access, they’ll see the restored files as normal. Pro tip: Check the Recycle Bin in OneDrive for shared files marked as deleted.

3

Is there a way to recover files without admin rights?

Without admin access, your options are limited—but not impossible. If the user had version history enabled, they (or you with their permission) can restore files from the OneDrive Recycle Bin or Recoverable Items in Outlook. For shared drives, contact the IT admin—they can grant temporary access to recover critical data.

4

What if the deleted user had a Microsoft 365 Business account?

Business accounts offer longer retention periods (up to 90 days for admins). Use the Microsoft 365 Admin Center to:

  • Navigate to Users > Deleted users.
  • Select the user and click Restore.
  • Wait for the process to complete (files reappear in their OneDrive).
Note: This only works if the account wasn’t soft-deleted (marked for deletion but not yet purged).
5

How do I troubleshoot if files aren’t appearing after recovery?

If restored files are missing or corrupted, try these steps:

  • Check permissions: Ensure the restored user has access to shared folders.
  • Verify sync status: Open OneDrive and click the cloud icon to resync files.
  • Use OneDrive for Business: If files are in a shared drive, access them via https://yourdomain.sharepoint.com.
  • Contact support: If corruption persists, Microsoft Support may assist with deeper recovery.
Always back up critical files post-recovery!

Wrapping up and next steps

Losing files due to a deleted OneDrive user account can feel overwhelming, but with the right steps, recovery is absolutely possible! 🎉 Whether you’re an admin leveraging the Recycle Bin or exploring backup solutions, you now have a clear roadmap to retrieve those critical files.

Don’t let panic take over—take action and reclaim what matters.

Your next logical step? Document your process or share these tips with your IT team to streamline future recoveries. Stay proactive, and you’ll turn potential headaches into seamless solutions!

★★★★★4.6(7 reviews)
Categories Troubleshooting