Share via

Server Error: Access denied

Anonymous
2016-03-03T03:03:37+00:00

once i attempting to add and rename a new .aspx file  within sharepoint designer from my sharepoint list, i received the following error message:

![](http://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=86d6a847-44b9-4e9e-ae46-2e437e25007d)

i already create a permission level under site settings-->site permissions-->permission levels-->add a permission level;

but still it is coming same error, please note my permission details

![](http://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=373339c0-1241-4310-8998-c7f3881704a2)

please help me to solve this problem

Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-03-03T04:54:25+00:00

Hi AshifKattuparuthi,

To investigate this issue, I’d like to confirm whether you have turned on scripting capabilities. If not, the Add and Customize Pages permission will be denied. Please follow the steps below to turn it on to see the outcome.

  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:

Allow users to run custom script on personal sites.

Allow users to run custom script on self-service created sites.

Note: It may take up to 24 hours for the change to take effect.

For more information about the scripting capabilities, you can refer to the article below:

https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f

Thanks,

Ran

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-03-05T06:15:14+00:00

    from  set up the sharepoint online management shell environment , i tried to install windows management framework 3.0.'' but it is coming error message as:![](http://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=0a786a8a-6a4a-4abd-9297-6cd4ca1b3629)

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-03-05T03:16:17+00:00

    Hi AshifKattuparuthi,

    Thanks for your updates.

    To further move on this case, could you let us know if the Add and Customize pages permission is still in deny status? If so, could you turn off and turn on the capabilities on or off again to check the outcome? Also you can use the following powershell method to enable capability immediately:

    1. Set up the SharePoint Online Management Shell environment
    2. Connect to SharePoint

      Connect-SPOService

       How do I get permissions and set up the environment?

    1. Use the following PowerShell command to enable capability:

    Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0

    Note: Make sure the scripting setting in the admin portal matches what you set using PowerShell, or the site collection setting may be overridden again in the next 24 hours.

    If the Add and Customize page permission has been enabled, and the access denied error persists on SharePoint Designer, could you help us confirm the following information?

    1. Master page or the Page Layout used are checked out or are in pending state.

       If so, you can navigate to ~SiteCollectionURL/_catalogs/masterpage/Forms/AllItems.aspx, check in and publish the master page.

    1. Users don’t have permission to Mater Page Gallery

       If so, give user read access to the Master Page Gallery

    Please let us know any updates when you’re free.

    Thanks,

    Kerwin

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-03-04T23:29:19+00:00

    I made all these changes as you suggested, but still it is showing same error messege

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-03-04T08:09:52+00:00

    Hi AshifKattuparuthi,

    Could you share some updates with us?

    Thanks,

    Ran

    Was this answer helpful?

    0 comments No comments