My SharePoint Log

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.

customscripts

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

Connect-SPOService -Url https://yourtenant-admin.sharepoint.com -credential admin@yourtenant.onmicrosoft.com
Set-SPOSite -Identity https://yourtenant.sharepoint.com -DenyAddAndCustomizePages 0

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

Cheers

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: