Find and Undo Files Moved by a Microsoft 365 User
Question details
An administrator needs to identify files a user moved to incorrect folders and restore their previous locations.

- Product
- Microsoft 365, SharePoint, OneDrive, and Microsoft Purview Audit
- Device & OS
- not provided
- Scenario
- A user accidentally moved files over several weeks, and the administrator needs to trace and reverse the moves.
- Observed behavior
- Files are in incorrect folders, but the affected items and their previous locations are not yet known.
Confirm the user's account, the approximate date range, and the SharePoint sites or OneDrive locations involved. You need permission to search Microsoft Purview Audit and to move the affected files; audit records must also be available for the period in question.
Search audit logs and move files back manually
Use this method to identify recorded file moves and restore files to their earlier folders.
The audit log identifies recorded activity but does not automatically undo file moves. Available event details and retention periods depend on your audit configuration and licensing.
Sign in to the Microsoft Purview portal with an account that can search audit logs, then open Audit and select Search.
Set the date and time range to cover the affected weeks, enter the user's account, and select the file-move activity, commonly recorded as FileMoved. Run the search.
Open matching events or export the results to CSV. Check the timestamps, file names, site, and available source and destination paths to identify the moves that need to be reversed.
In SharePoint or OneDrive, locate each affected file, select it, and choose Move to. Select its previous folder from the audit details and confirm the move. If a file was moved more than once, trace its events in reverse chronological order.
Open the original folders in SharePoint or OneDrive and confirm that the expected files are present. Investigate any missing files or name conflicts before completing the recovery.

Work with Restored Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office files after they are restored. Its Microsoft Office format compatibility helps make migration between applications seamless.

Frequently Asked Questions
Where can I find records of files a user moved?
In the Microsoft Purview portal, open Audit and search for the user's file-move activity over the relevant date range. Review the event details or export the results to CSV.
Can the audit log undo a file move automatically?
No. Audit results help identify recorded moves and available path details, but you generally need to use Move to in SharePoint or OneDrive to return each file to its previous folder.
What if the move is not in the audit results?
Check the user, date range, activity filter, and search permissions in Audit. The event may also be unavailable because it was not recorded or is outside the applicable retention period; check your organization's backup or recovery tools.
Will version history restore a file's previous folder?
Version history is primarily for restoring earlier file content, not reliably reversing a move. Use the audit event's location details and the SharePoint or OneDrive Move to command to return the file.




