How to Move a Former User's OneDrive Files to Another Library
Question details
A Microsoft 365 administrator needs to transfer or access the OneDrive files of a departing or former employee.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- An employee has left the organization, and their OneDrive files must be migrated to another user's library or a shared SharePoint location before the data is permanently deleted.
- Observed behavior
- The administrator needs to generate access links or perform bulk transfers via PowerShell depending on whether the former user's account is still active or has already been deleted.
Ensure you have global administrator or SharePoint administrator privileges in Microsoft 365 before attempting to access or migrate another user's OneDrive files.
Transfer Files Using the Microsoft 365 Admin Center
The easiest method for handling an active or recently inactive account is generating a file access link directly from the Microsoft 365 Admin Center.
This method is ideal for one-off file transfers when an employee is leaving and their account has not yet been permanently removed from the system.
Open the Microsoft 365 admin center and navigate to 'Users' > 'Active users' in the left-hand menu.
Find and click on the name of the user whose files you want to access to open their details pane.
In the user details pane, click on the 'OneDrive' tab located at the top.
Under the 'Get access to files' section, select 'Create link to files'.
Click the generated link to open their OneDrive in your browser. Select the necessary files and use the 'Move to' or 'Copy to' button to transfer them to another OneDrive or SharePoint library.

Recover Files from a Deleted User Account
If the user account has already been deleted, you must follow the OneDrive retention recovery procedures.
Move OneDrive Files using PowerShell
For bulk transfers or automated migrations, administrators can use PowerShell scripts to move data across libraries.
Manage Your Documents Efficiently with WPS Office
While Microsoft 365 provides complex administrative tools for cloud storage, everyday users and teams need a fast, reliable, and cost-effective solution for creating and editing documents. WPS Office is a lightweight, free alternative that perfectly handles Word, Excel, and PowerPoint files without heavy subscription costs.

Frequently Asked Questions
How long are OneDrive files kept after an employee leaves?
By default, Microsoft 365 retains a deleted user's OneDrive files for 30 days. However, administrators can modify this retention period up to 3650 days in the SharePoint admin center.
Can I move OneDrive files directly to a shared SharePoint library?
Yes. Once you gain access to the former user's OneDrive via the Admin Center, you can select the files and use the 'Move to' or 'Copy to' feature to transfer them directly to any shared SharePoint library you have access to.
Does the former user get notified when I access their OneDrive?
No, if the user account is managed by the organization and accessed by an administrator using the official Microsoft 365 Admin Center tools, the former user does not receive a notification.
What happens if the 30-day retention period expires before I move the files?
If the retention period expires and no specific hold was placed on the account, the OneDrive files are moved to the site collection recycle bin for 93 days. If they are not recovered from there, they are permanently deleted.




