How to Fix SharePoint Files Remaining Read-Only After Unlocking a Site
Question details
Users are unable to edit SharePoint documents because the files continue to open in read-only mode after the site was unlocked via PowerShell.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Attempting to edit files on a SharePoint site that was recently changed from ReadOnly to Unlocked.
- Observed behavior
- Files remain read-only despite the site being successfully unlocked using SharePoint Online Management Shell.
Ensure you have SharePoint administrator privileges and access to the SharePoint Online Management Shell to verify the site's lock state and manage user permissions.
Verify Site Lock State and Update User Permissions
Confirm that the unlock command was successfully applied to the correct site and verify that users have the required edit permissions.
Sometimes the PowerShell command may not apply to the intended site URL, or underlying user permissions might still restrict editing access. Verifying the lock state and checking advanced permissions ensures the site is fully accessible.
Open SharePoint Online Management Shell as an administrator and run the command 'Get-SPOSite -Identity <site URL> | Select LockState' to confirm the site is listed as 'Unlock'.
Check the site settings to ensure there are no active site closure or retention policies that might be forcing the site to remain in a read-only state.
Navigate to the affected SharePoint site, click the gear icon for Settings, select 'Site permissions', and then click 'Advanced permissions settings'.
Check the user or group permissions to ensure they are assigned at least 'Contribute' or 'Edit' access levels, which are required to modify files.

Edit Your Documents Smoothly with WPS Office
While troubleshooting SharePoint server permissions, you can download your files and edit them locally using WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office for all your document tasks.
- 1. Download WPS Office: Visit the official WPS website to download and install WPS Office Free on your computer.
- 2. Download the file: Download the read-only document from your SharePoint site directly to your local hard drive.
- 3. Edit and save locally: Open the downloaded file with WPS Office, make your necessary edits, and save the changes locally before re-uploading to SharePoint.

Frequently Asked Questions
Why do my SharePoint files still say read-only after unlocking?
This usually happens if the PowerShell unlock command was applied to the wrong URL, if a site closure policy is overriding the lock state, or if the user's specific edit permissions were removed while the site was locked.
How long does it take for a SharePoint site unlock to take effect?
Changes to a site's lock state using PowerShell typically take effect immediately. However, local browser caching or brief permission syncing delays might require users to refresh the page or log back in.
Can I unlock a SharePoint site without using PowerShell?
Yes, SharePoint administrators can also change the site lock status through the SharePoint admin center by selecting the active sites list, choosing the specific site, and adjusting the lock status in the site settings panel.




