Access a Deleted User's OneDrive with Microsoft Graph
Question details
The user needs to know how to access a deleted Microsoft 365 user's OneDrive by using Microsoft Graph and what administrator retention rules apply.

- Product
- Microsoft OneDrive with Microsoft Graph
- Device & OS
- not provided
- Scenario
- An administrator or developer must recover files from a former user's OneDrive after the account was deleted or unlicensed.
- Observed behavior
- Microsoft Graph does not normally provide direct access to a deleted user's OneDrive after the account is removed; access depends on administrator recovery options and the OneDrive retention period.
Check in the Microsoft 365 admin center whether the account is deleted or only unlicensed, and confirm the tenant's OneDrive retention period before attempting recovery.
Restore a deleted Microsoft 365 user account within the retention period
Use this method when the user account has been deleted and the former user's OneDrive is still retained, typically for 30 days.
After a Microsoft 365 user is deleted, the associated OneDrive is retained for a limited period. Restoring the account reconnects the user identity and makes the OneDrive content accessible again through standard admin tools. Microsoft Graph access remains governed by Microsoft 365 permissions and data retention policies.
Sign in at admin.microsoft.com with a global or SharePoint administrator account.
Go to Users > Deleted users, select the deleted user, and select Restore.
After restoration, open the user's OneDrive from the admin center or assign access to another administrator to download the files.

Grant administrator access to an unlicensed but not deleted user's OneDrive
Use this method when the user still appears in Active users but no longer has a license; it avoids full account restoration.
If OneDrive Recovery Is Limited, Keep Documents Manageable with WPS Office
WPS Office is a free, lightweight Office alternative that opens and saves Microsoft Word, Excel, and PowerPoint files with high compatibility. It provides a familiar ribbon interface and local file management, so you can avoid relying only on complex Microsoft 365 recovery and retention workflows.

Frequently Asked Questions
Can Microsoft Graph directly access a deleted user's OneDrive?
Microsoft Graph does not normally provide direct access after the account is removed. Access depends on whether the user is unlicensed or deleted and on the Microsoft 365 retention policy.
How long is a deleted user's OneDrive retained in Microsoft 365?
The former user's OneDrive is generally retained for a limited period, commonly 30 days, but the exact period depends on tenant settings and Microsoft 365 administrator configuration.
What is the difference between removing a license and deleting a user?
If you remove a user's license without deleting the account, the user remains in Active users and an administrator can grant OneDrive access. If you delete the account, you normally must restore it within the retention period to access the OneDrive data.
How can an administrator access a former user's OneDrive files?
In the Microsoft 365 admin center, go to Users > Active users or Deleted users, select the user, and use the OneDrive tab options such as Access files or Restore.
Does WPS Office recover OneDrive files deleted by Microsoft 365?
WPS Office is an Office alternative and document management suite. It does not control Microsoft 365 OneDrive retention or restore deleted Microsoft accounts, but it can open, edit, and repair local Microsoft Office documents.




