How to enable Add and customize page in Sharepoint server

サンデャ 管理者 60 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,374 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,619 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,961 questions
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 25,546 Reputation points Microsoft Vendor
    2024-07-11T01:28:40.1866667+00:00

    Hi サンデャ 管理者 ,

    Sorry for the late reply, I've been working on this for the past few days.

    SP 2019 supports custom script by default. Generally, there is no need to apply the above PowerShell command unless you have problems when applying custom codes. So, in SharePoint 2019, there is no GUI /powershell to to disable it. This is by design.

    You say you can't test a lot of things, can you tell me exactly what they are and maybe I can find alternatives for you.

    Thank you for your understanding and support. Have a nice day!


    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 25,546 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.