Permission denied for "Add and Customize Pages" in Sharepoint Online


Problem:

I have created root site in SharePoint Online, weird problem I started facing is being a site administrator I was not able to customize the page/ upload the any page or master page.

As in image below, for some reason I am set as Deny to "Add and Customize Pages".






The problem is related to 'Scripting Capabilities' being turned off by default for the root site collection in Office 365.

I found some article on community:

https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f?ui=en-US&=amp&rs=en-US&ad=US

It mentions that turning on scripting through the Sharepoint Admin Settings and wait around 24 hours. However, this did not work for me. still the issue was there.

Following lines of script did a trick.

Solution:

Connect-SPOService -Url https://<yoursitename>-admin.sharepoint.com -credential <admincredentials>

Set-SPOsite https://<your root site url> -DenyAddAndCustomizePages 0


And it immediately started working!

Happy Learning!

Comments

  1. Thank you Anuj this helped me fix the issue.

    ReplyDelete
  2. Huzzah! Although 4 years old, this was the only thing that worked. I too experienced the issue where the custom script enabling did not work but this worked immediately as stated! Many hours of searching - final the answer! Thank You!

    ReplyDelete
  3. Great guide on fixing 'Permission denied' in SharePoint Online! Just like Host ever provides reliable support, this helps keep your pages customizable.

    ReplyDelete

Post a Comment

Popular posts from this blog

Search Result Webpart,Filter result If QueryString is present in URL

SharePoint 2013 Workflow gets canceled automatically