SharePoint Online -DenyAddAndCustomizePages

Signed up for a brand new E3 Tennant and ready to build some pages, play with some pagelayouts..ect.

Found out that “acces was denied” even though I’m “Global” and “SharePoint Administrator”.

Guess what, SharePoint Online have now a new policy that by “default” disables custom scripting ect..

You can enable this by going to your SharePoint admin site | Settings and enable this, but you have to wait 24 hours.


or you can do this by PowerShell and you don’t need to wait 24 hours:

Connect-SPOService -Url -credential
Set-SPOSite -Identity -DenyAddAndCustomizePages 0

This will turn “On” the ability to deploy/customize pagelayouts ect… in Your SPO site.


2 thoughts on “SharePoint Online -DenyAddAndCustomizePages

  1. Pingback: SharePoint Designer 2013 access denied on SharePoint Online | Jason Burke - Stuff I learned Today

  2. Pingback: Displaying site information security classification on every page using a custom SPFx extensions — Part III | Tahoe Ninjas

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s