Why does it say Deny "add and customize pages" under my permissions as a site owner and what can I do to edit pages?

Tevon2.0 1,101 Reputation points

Please provide guidance with the understanding that this is an “on-premise” SharePoint farm.

Greetings, I was recently tasked with transforming a classic SharePoint page from 2010 into a new modern page using SharePoint 2019 on premise. I am working in a sandbox environment and under my site permissions I see "deny - add and customize pages" when I am a new site admin and listed owner. I am currently not able to edit any pages for my new SharePoint site collection as the edit button does not even appear on any of the pages. I also do not seem to have access to the "Admin" option when I click the waffle button on the top left (Only choices shown there are One Drive and SharePoint. Also, the only site within the VM I seem to have access to is the SP portal site that I am tasked with editing.

Any advice for a solution and idea of the cause of the possible restriction?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,795 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Renjie Sun-MSFT 2,856 Reputation points Microsoft Employee

    Hi @Tevon2.0 ,

    Thanks for the post.

    According to the research and test, you could enable custom script by using PowerShell command.

    1. Login to your SharePoint Farm SharePoint 2019 On-Premise
    2. Open SharePoint 2019 Management Shell as administrator
    3. Execute the following PowerShell command: (Get-SPSite -Identity "https://your-host/sites/modern-site").DenyPermissionsMask = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask

    For more information: Activate Custom Script for SharePoint 2019

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    I hope I can offer you a better experience next time if I have a chance to work with you again.

    Yours faithfully,
    Renjie Sun

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.