Can OneDrive Lock Files While They Are Being Used? | Fix & Alternatives
Question details
The user wants to know if OneDrive can lock files to prevent other users from opening or editing them while they are currently in use or synchronizing.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Collaborating on shared files where exclusive editing access is needed to prevent version conflicts.
- Observed behavior
- OneDrive does not provide a native file-locking feature that immediately prevents others from editing a file while synchronization is in progress.
Before attempting to check out files or modify permissions, ensure your OneDrive app has finished syncing any recent changes to avoid losing pending edits.
Use SharePoint Check-Out and Check-In
Since OneDrive lacks direct file locking, use the connected SharePoint document library to require check-out for exclusive editing.
OneDrive itself does not provide a separate file-locking feature to prevent other users from opening or editing a file while it is syncing.
However, since OneDrive for Business is built on SharePoint, you can utilize the SharePoint Check-Out feature to gain exclusive control over a document during the editing process.
Navigate to the SharePoint document library online where your shared OneDrive file is stored.
Find the specific document you want to lock, hover over it, and click the three horizontal dots (Show actions) next to the file name.
Select 'More' from the dropdown menu, and then click 'Check out'. The file is now locked for your exclusive use, preventing others from making edits.
Once you finish editing and saving your changes, click the three dots again, select 'More', and choose 'Check in' to unlock the file for your collaborators.

Submit Feedback or Use Third-Party Software
Explore centralized locking software if automated locking is required, or submit a feature request to Microsoft.
Seamless File Sharing and Collaboration with WPS Office
If managing file versions and check-outs in OneDrive feels cumbersome, WPS Office provides a robust, lightweight, and free alternative. With built-in WPS Cloud features, you can easily manage document collaboration, track versions, and maintain full compatibility with all Microsoft Office formats without the heavy overhead.
- 1. Download WPS Office: Install WPS Office on your computer or mobile device from the official website.
- 2. Save to WPS Cloud: Create or open your document and save it directly to WPS Cloud for secure online storage.
- 3. Share and Collaborate: Generate a sharing link with specific editing or viewing permissions to collaborate smoothly with your team.

Frequently Asked Questions
Why do I get sync conflicts in OneDrive?
Sync conflicts occur when multiple users edit a shared file simultaneously because OneDrive does not automatically lock the file. If changes cannot be merged via co-authoring, OneDrive creates a separate copy of the file to prevent data loss.
Does OneDrive tell others I am editing a file?
If you and your team are using Microsoft Office applications with co-authoring enabled, others will see your presence in the document. However, if a user opens a file from their local sync folder without an active internet connection, it will not notify others, which risks version conflicts.
Can I password protect or lock an entire folder in OneDrive?
No, OneDrive does not support locking or password-protecting entire folders natively. You can only restrict sharing permissions to 'View only' to prevent edits, or use the Personal Vault feature for sensitive individual files.




