Pages

Monday, September 28, 2015

SharePoint Designer Online Server Error:'Access Denied' on modify anything


Most probably get 'Access Denied' when Custom Script feature is turned off. This will not allow to check-out/check-in or do save operation on anything in SharePoint site. Please follow the below steps to enable the Custom Script feature and that will solve the issue.

1. Sign in to Office 365 with your work or school account.
2. Go to the SharePoint admin center.
3. Select Settings.
4. Under Custom Script choose:

- Prevent users from running custom script on personal sites or Allow users to run custom script on personal sites.
- Prevent users from running custom script on user created sites or Allow users to run custom script on self-service created sites.







5. Select OK. It takes about 24 hours for the change to take effect 
Also, we can enable the feature using powershell script and that will take effect immediately. Execute below scripts in SharePoint Online Management Shell. 

Connect-SPOService -Url https://testspsite-admin.sharepoint.com -credential spadmin@testspsite.onmicrosoft.com

Set-SPOSite -Identity "https://testspsite.sharepoint.com" -DenyAddAndCustomizePages $false

After run above two powershell scripts, you can start modify files immediately. 

Hope this helps.

No comments:

Post a Comment