Fix Add and Customize Pages Permissions in SharePoint Online
Question details
Enable or find a supported alternative to the Add and Customize Pages permission on a modern SharePoint Online team site.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A global administrator with Full Control wants to customize pages on a modern team site.
- Observed behavior
- Check Permissions still reports Add and Customize Pages as denied after custom scripting was enabled for more than 24 hours and a site-level PowerShell command was run.
Identify the exact site collection URL and your tenant's SharePoint admin URL. Make sure you can connect to SharePoint Online Management Shell with an account that has the required administrative permissions.
Verify the site-level custom scripting setting
Use SharePoint Online Management Shell to confirm that the command targets the correct site collection and check whether the setting is applied.
Open SharePoint Online Management Shell and run Connect-SPOService -Url https://<tenant>-admin.sharepoint.com, replacing <tenant> with your tenant name. Sign in when prompted.
Run Get-SPOSite -Identity https://<tenant>.sharepoint.com/sites/<site> | Select-Object Url,DenyAddAndCustomizePages. Replace the URL with the exact site collection URL and confirm the result identifies the intended site.
If custom scripting is permitted by your organization's policy, run Set-SPOSite -Identity https://<tenant>.sharepoint.com/sites/<site> -DenyAddAndCustomizePages 0 using the same site collection URL.
Allow time for the change to propagate, rerun Get-SPOSite, and use Site permissions > Advanced permissions settings > Check Permissions to test the affected account. If the setting reverts or access remains denied, review tenant and site policies with your SharePoint administrator.

Use a supported approach for modern site customization
Use this approach when the desired customization relies on classic scripting or is not supported on the modern site.
Edit Office Documents with WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. It supports common Microsoft Office formats, making it easier to move existing files between applications. It does not change SharePoint permissions or tenant policies.

Frequently Asked Questions
Why does Check Permissions still show Add and Customize Pages as denied?
The command may have targeted a different site collection, the change may still be propagating, or a tenant or site policy may restrict custom scripting. Check DenyAddAndCustomizePages with Get-SPOSite and review the applicable policies.
Does Full Control automatically enable custom scripting?
No. Full Control does not necessarily override a site-level custom scripting restriction or tenant policy. Check the site's DenyAddAndCustomizePages setting separately.
How can I verify that I targeted the correct site collection?
Run Get-SPOSite -Identity with the full site collection URL and select Url and DenyAddAndCustomizePages. Confirm that the returned URL matches the site you intend to customize.
What can I use instead of classic scripts on a modern page?
Consider an approved SharePoint Framework solution for modern pages. Ask your SharePoint administrator about deployment through the tenant's app catalog.




