Wednesday, May 8, 2019

Deny - Add and customize issue for a user

Hi Folks,

I've received a incident ticket where user shared his concern regarding unable to add/customize pages. We have checked on the ticket and got to know that user do has Full Control access to the SharePoint site. But there is also other thing spotted in permissions check which shows "Deny  -  Add anc Customize Pages".


SharePoint Permissions Issue

We analyzed the issue and observed that Custom Script is disabled for the site.
  • It was very strange to get this type of error as I was logged-in with the Admin account and still getting access denied to certain things and getting no permission to add or customize pages. Therefore, to correct this issue, I checked the Office 365 Admin Portal settings. For this,
    1. Sign in to Office 365 Admin Portal with your admin account.
    2. Go to the SharePoint Admin Centre.
    3. Select Settings.

      Look for “Custom Script” option. In my case, client IT Administrator unknowingly disabled the option, as shown below.

      SharePoint Permissions Issue
  • Now, the solution - Enable or Allow the Custom Script option.

    NOTEAny change to the scripting setting made through the SharePoint Online Admin Centre may take up to 24 hours to take effect.

    SharePoint Permissions Issue
  • After doing the above setting, I waited for 24 hours, and Voila! Now, I am not getting any “Access Denied” error while checking-out the file in SharePoint Designer.

    SharePoint Permissions Issue

    You can use PowerShell command (Set-SPOSite -Identity https://<yourdomain>.sharepoint.com -DenyAddAndCustomizePages $false) also to make the above change, however, just make sure the scripting setting in the admin portal matches what you set using PowerShell.



Thanks,
Kunal

No comments:

Post a Comment