Fix SharePoint Online Regional Settings Access Denied
Question details
The user needs to change a SharePoint Online site's time zone or regional settings without receiving an Access Denied error.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A site owner or Microsoft 365 administrator is changing a site's time zone or other regional settings.
- Observed behavior
- SharePoint Online displays Access Denied when the user attempts to change the settings.
Confirm the affected site's URL and check that you have site collection administrator access. Changing custom script settings requires an appropriate SharePoint administrator role and should follow your organization's security policies.
Enable custom scripting and retry the regional settings
Use this approach when disabled custom scripting is preventing an authorized administrator from changing the site's regional settings.
Enabling custom scripting can increase security risks. Apply the change only to trusted sites and restore restrictions when they are no longer needed.
Open the SharePoint admin center and look for the classic Settings page and its Custom Script options. If the options for personal sites and self-service-created sites are available, allow users to run custom script on both.
If the classic options are unavailable or you need to enable scripting for one site, open SharePoint Online Management Shell, run Connect-SPOService with your tenant's SharePoint admin URL, then run Set-SPOSite -Identity "https://tenant.sharepoint.com/sites/site-name" -DenyAddAndCustomizePages 0 using the affected site's URL.
Wait up to 24 hours for an administration setting change to take effect, then return to the affected SharePoint site. Site-level custom script changes may be reset automatically by tenant policy.
On the site, select Settings > Site information > View all site settings, then under Site Administration select Regional settings. Change the time zone or other settings and select OK.
When custom scripting is no longer needed, use the applicable SharePoint admin center settings or run Set-SPOSite -Identity "https://tenant.sharepoint.com/sites/site-name" -DenyAddAndCustomizePages 1 to restrict it again.

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 tenant or regional settings.

Frequently Asked Questions
Where can I change a SharePoint site's time zone?
On the site, select Settings > Site information > View all site settings. Under Site Administration, select Regional settings, choose the time zone, and select OK.
Why can custom scripting affect access to regional settings?
Some SharePoint site administration changes can be blocked when custom scripting is disabled. If you have the required permissions, an administrator can check the site's custom script setting and retry the change.
How long does it take for a custom script setting to apply?
Allow up to 24 hours for a change made through the SharePoint administration settings to apply, then try the Regional settings page again. Site-level changes may also be reset automatically by tenant policy.
What if I cannot find the Custom Script options in the admin center?
A SharePoint administrator can use SharePoint Online Management Shell and Set-SPOSite with the affected site URL and -DenyAddAndCustomizePages 0. The administrator should review security policies before enabling scripting.
Can WPS Office fix the SharePoint Access Denied error?
No. SharePoint permissions and custom script settings must be managed in Microsoft 365 or SharePoint administration tools. WPS Office can open and edit compatible Office files downloaded from SharePoint.




