Forum Discussion

Alan Trafford's avatar
Alan Trafford
Brass Contributor
Nov 29, 2016
Solved

How do I set DenyAddAndCustomizePages using PnP?

Hi   Is there a way I can set DenyAddAndCustomizePages using PnP?   I know it can be done using "SharePoint Online Management Shell" via the Set-SPOSite command. However, this command does not ex...
  • MichalSzm's avatar
    Apr 27, 2023

    Alan Trafford This site will help you: https://pnp.github.io/powershell/cmdlets/Set-PnPTenantSite.html
    Set-PnPTenantSite -Identity "https://contoso.sharepoint.com/sites/sales" -DenyAddAndCustomizePages:$false

Resources