Forum Discussion
Woody
Jun 20, 2024Copper Contributor
Custom Scripts policy breaks editing Custom Fields in PDPs (Project Online)
Hi! Due to the recent policy applied by Microsoft about blocking the edition of Custom Scripts with the CEWP, we cannot edit Project Details Pages anymore to add/remove Enterprise Custom Fields i...
CTS-SRIRAME
Jul 24, 2024Copper Contributor
Update it only for the specific site collection instead for the whole tenant.
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com/ -Credential email address removed for privacy reasons
$url=Get-sposite -Identity https://yourdomain.sharepoint.com/sites/pwa
$url.DenyAddAndCustomizePages
Set-SPOSite https://yourdomain.sharepoint.com/sites/OnePlan -DenyAddAndCustomizePages 0
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com/ -Credential email address removed for privacy reasons
$url=Get-sposite -Identity https://yourdomain.sharepoint.com/sites/pwa
$url.DenyAddAndCustomizePages
Set-SPOSite https://yourdomain.sharepoint.com/sites/OnePlan -DenyAddAndCustomizePages 0
jefmeyer
Jul 24, 2024Iron Contributor
Yes, this is the PowerShell equivalent of what can be done in SP Admin Center. Just be aware that this setting will revert after 24 hours.