How to enable Add and customize page in Sharepoint server

サンデャ 管理者 40 Reputation points
2024-07-05T02:10:21.4033333+00:00

when I check my denypermission it was written empty mask due to which I cannot able to test many thing so I want to enable add and custom page or say want to disable custom script in sharepoint server is there any way to do so??

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,287 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,881 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 21,826 Reputation points Microsoft Vendor
    2024-07-05T08:06:14.7866667+00:00

    Hi @サンデャ 管理者 ,

    According to the research , you could enable add and custom page 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]::AddAndCustomizePages

    If the answer is helpful, please click "Accept as 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.