How to Fix Cannot Rename an Open or Shared OneDrive File on Mac
Question details
The user is unable to rename a OneDrive file on a Mac, which typically happens when the file is currently open, shared, locked, or lacking edit permissions.

- Product
- OneDrive for Mac
- Device & OS
- Mac
- Scenario
- Attempting to rename a synchronized document stored in a local OneDrive folder on a Mac.
- Observed behavior
- The rename option is either unavailable, greyed out, or fails with an error, preventing the user from changing the file name while it is open or directly from Finder.
Ensure you have an active internet connection and that the OneDrive client on your Mac is currently running and fully synced.
Close the File and Rename via Finder or OneDrive Web
Since open files are often locked by applications or background sync processes, closing the document and renaming it from Finder or the web interface is the most effective solution.
macOS and Microsoft Office applications frequently place a temporary lock on open files to prevent conflicting edits. You must release this lock before the system allows any name changes.
Completely quit the Office application or any other program that currently has the document open.
Check your menu bar and wait a few seconds for the OneDrive client to finish uploading any recent changes.
Open Finder, navigate to your OneDrive folder, right-click the file, and select 'Rename'.
If Finder fails, log in to the OneDrive website in your browser, select the file, and click 'Rename' on the top toolbar.

Verify File Sharing and Edit Permissions
If the file is shared by someone else, you might only have read-only access. You need sufficient permissions to alter the file name.
Use WPS Office for Seamless Document Management on Mac
Avoid frustrating file lock issues and heavy subscription fees by switching to WPS Office. It provides a lightweight, highly compatible, and free alternative to Microsoft Office, ensuring smooth document editing and seamless cloud saving on your Mac.
- 1. Visit the website: Go to the official WPS Office website on your Mac.
- 2. Download the installer: Click the free download button for macOS to get the installation package.
- 3. Install and edit: Run the installer and open your documents seamlessly without strict file lock issues.

Frequently Asked Questions
Why does my Mac say the OneDrive file is locked?
A file may appear locked if another user is actively editing it in a shared folder, or if an application crashed without releasing the file lock properly. Closing the program or waiting for the server to timeout the lock usually resolves this.
Can I rename a OneDrive document while it is open?
Depending on the specific Office application and sync status, renaming an open file is often restricted by macOS to prevent data loss or sync conflicts. It is always safest to close the file first.
What should I do if the rename option is greyed out in Finder?
A greyed-out rename option usually indicates a permission issue or an active sync lock. Verify that the file isn't marked as read-only, ensure you have edit rights from the owner, and try renaming it via the OneDrive web interface instead.




