Fix SharePoint Online Access Errors When Saving Navigation Settings
Question details
A SharePoint Online administrator needs to save changes to site navigation without receiving an access error.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A site owner changes navigation settings, including switching from structural to managed navigation.
- Observed behavior
- The settings can be edited, but selecting OK to save displays: 'Sorry, you don't have access to this page.'
Identify the affected site collection URL and confirm that you can sign in as a SharePoint administrator. Check whether your organization permits custom scripting, because enabling it changes the site's security settings.
Enable custom scripting for the affected SharePoint site
Use this approach when navigation settings can be edited but saving them fails because site customization is blocked.
Custom scripting permits additional site customization and can increase security risk. Follow your organization's policies and enable it only when needed.
In the SharePoint admin center, open Active sites, select the affected site, and check its custom script setting if that control is available. Admin center options can vary.
Open the SharePoint Online Management Shell and run Connect-SPOService -Url https://<tenant>-admin.sharepoint.com, replacing <tenant> with your tenant name. Sign in with an account that can administer SharePoint.
Run Set-SPOSite -Identity https://<tenant>.sharepoint.com/sites/<site> -DenyAddAndCustomizePages 0, replacing the URL with the affected site collection URL.
Return to the site's Navigation Settings page, select Managed Navigation, and click OK. If the error persists, check the publishing feature and ownership settings below.

Check publishing features and managed navigation permissions
Use these checks if managed navigation is unavailable or the access error continues after reviewing custom scripting.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office documents. Its format compatibility helps you move existing files into your workflow, although it cannot change SharePoint navigation or administrator settings.

Frequently Asked Questions
Why can I edit navigation settings but not save them?
Site ownership does not necessarily override SharePoint's custom scripting restrictions. Check the affected site's custom script setting in the SharePoint admin center or with SharePoint Online Management Shell.
Which URL should I use with Set-SPOSite?
Use the affected site collection URL with the -Identity parameter, such as https://<tenant>.sharepoint.com/sites/<site>. Use the separate tenant admin URL with Connect-SPOService.
Is enabling custom scripting permanent?
Not necessarily. SharePoint Online can automatically reset the setting, depending on current service behavior and tenant policy. Verify your organization's configuration and current Microsoft guidance.
Do I need a term set for managed navigation?
Yes. Managed navigation uses a term set. Check the Term Store in the SharePoint admin center, then select the appropriate term set on the site's Navigation Settings page.
Can WPS Office fix this SharePoint access error?
No. The error concerns SharePoint site configuration and permissions. WPS Office can open and edit compatible Office documents, but a SharePoint administrator must address the navigation settings.




