How to Fix OneDrive Files Locked on Mac and Cannot Be Edited
Question details
The user needs to unlock and edit OneDrive files and folders that appear with a lock icon in macOS Finder.

- Product
- Microsoft OneDrive
- Device & OS
- macOS
- Scenario
- Accessing and editing OneDrive for Business files locally via Mac Finder after a macOS or app update.
- Observed behavior
- Files and folders display a lock icon in Finder and cannot be altered or renamed locally, despite being fully editable through the OneDrive website.
Ensure your Mac has a stable internet connection and verify that your latest edits are fully synced to the OneDrive website to prevent data loss before modifying your account connection settings.
Unlink and Relink Your Mac in OneDrive Preferences
Resetting the connection between your Mac and OneDrive is the most effective way to clear local lock errors.
Unlinking your Mac will stop the current synchronization and remove locally cached files. Once you relink the account, OneDrive will rebuild the sync database, effectively removing the incorrect lock status on your files.
Click the OneDrive cloud icon in your Mac menu bar. Select the Help & Settings gear icon, and then click Preferences.
Navigate to the Account tab within the preferences window and click the 'Unlink this Mac' button.
Sign back into your OneDrive account when prompted and follow the setup instructions to relink your Mac. Note that locally stored files will need to be downloaded again.

Modify File Permissions in Finder Get Info
Manually unlock files and fix Read & Write privileges using macOS Finder.
Recreate SharePoint Shortcuts in OneDrive
If the locked files are part of a SharePoint synced folder, refreshing the shortcut can restore edit access.
Edit Your Cloud Documents Easily with WPS Office for Mac
While troubleshooting OneDrive syncing issues on your Mac, consider trying WPS Office. It's a lightweight, free alternative that perfectly handles Microsoft Office formats and integrates seamlessly with local and cloud storage.
- 1. Download WPS Office: Download and install WPS Office for Mac directly from the official website.
- 2. Open your files: Launch WPS Office and click 'Open' to access documents stored in your local folders or synced cloud drives.
- 3. Edit and save: Enjoy editing with full format compatibility and save your progress effortlessly.

Frequently Asked Questions
Why do my OneDrive files have a lock icon on my Mac?
This usually happens after a macOS or OneDrive update where local file permissions become corrupted, or the sync state mismatches, causing Finder to restrict local editing to protect the files from conflicting changes.
Will unlinking my Mac delete my OneDrive files?
Unlinking your Mac will not delete your files from the OneDrive cloud servers. However, files that were only stored locally in the OneDrive cache may be removed from the Mac and will need to be re-downloaded once you relink your account.
How do I unlock multiple files at once on macOS?
You can unlock an entire folder by right-clicking it, selecting 'Get Info', unchecking 'Locked', setting your account privileges to 'Read & Write', and choosing 'Apply to enclosed items' from the gear menu to apply changes to all files inside.
Can I still edit my locked OneDrive files online?
Yes, the lock icon in Finder only affects local editing on your Mac. You can still access and edit all your files normally by logging into the OneDrive website through your browser.




