Select Page

Found this particularly useful today while experimenting with SharePoint Online and trying to customize a master page.

First must download and enable the SharePoint Online Management Shell.
Connect to your site like so:
Connect-SPOService -Url https://yoursite-admin.sharepoint.com -credential username@yoursite.onmicrosoft.com
Run this command:
Set-SPOSite https://yoursite.sharepoint.com -DenyAddAndCustomizePages 0

Source:
https://support.office.com/en-us/article/Allow-or-prevent-custom-script-1F2C515F-5D7E-448A-9FD7-835DA935584F?ui=en-US&rs=en-US&ad=US

Pin It on Pinterest

Share This