Microsoft enforced stricter custom script controls across SharePoint Online starting September 15, 2025. Classic publishing site creation was also blocked.
Enforcement date: September 15, 2025
DenyAddAndCustomizePages: Set to true by default for all sites
Classic publishing: New classic publishing sites can no longer be created
Workaround deadline: PowerShell workarounds available until March 15, 2026
Impact: Custom scripts disabled unless explicitly allowed
Organizations relying on custom scripts or planning new classic publishing sites must adapt. The PowerShell workaround (Set-SPOSite -DenyAddAndCustomizePages $false) remains available until March 2026, but Microsoft recommends migrating to modern development approaches using SPFx.