SharePoint Online: Enable SharePoint Designer using PowerShell
Requirement: Enable SharePoint Designer for a SharePoint Online site.
SharePoint Online: How to Enable SharePoint Designer?
By default, SharePoint designer customizations are disabled for modern group sites in SharePoint Online. It gives an error message "The server could not complete your request." when you try to open a SharePoint Online group site in SharePoint Designer.
Also, It gives "You do not have permission to open this web site in SharePoint Designer" error message:
How to Enable SharePoint Designer in SharePoint Online?
To enable SharePoint Designer, follow these steps:
PowerShell to Enable SharePoint Designer:
If you want to enable SharePoint designer, use this PowerShell script:
To Disable SharePoint Designer customization for a SharePoint Online site collection, use:
You can enable custom script with PnP PowerShell as well: How to Enable Custom Script in SharePoint Online using PowerShell?
SharePoint Online: How to Enable SharePoint Designer?
By default, SharePoint designer customizations are disabled for modern group sites in SharePoint Online. It gives an error message "The server could not complete your request." when you try to open a SharePoint Online group site in SharePoint Designer.
Also, It gives "You do not have permission to open this web site in SharePoint Designer" error message:
How to Enable SharePoint Designer in SharePoint Online?
To enable SharePoint Designer, follow these steps:
- Sign in to Office 365 and go to the SharePoint Online Admin Center.
- Click on Settings from the left navigation >> Scroll down to "Custom Script" section
- Under the Custom Script section, Set "Allow users to run custom script on personal site" and "Allow users to run custom script on self-service created sites" options.
- Click on "OK" to save your changes.
PowerShell to Enable SharePoint Designer:
If you want to enable SharePoint designer, use this PowerShell script:
#Set Parameters $AdminSiteURL="https://Crescent-Admin.sharepoint.com" $SiteURL="https://crescent.sharepoint.com/sites/creditpipeline" #Connect to SharePoint Online Admin Center Connect-SPOService -Url $AdminSiteURL -Credential (Get-Credential) #Enable SharePoint Designer for the site collection Set-SPOSite -Identity $SiteURL -DenyAddAndCustomizePages $False
To Disable SharePoint Designer customization for a SharePoint Online site collection, use:
#DisableSharePoint Designer for the site collection Set-SPOSite -Identity $SiteURL -DenyAddAndCustomizePages $True
You can enable custom script with PnP PowerShell as well: How to Enable Custom Script in SharePoint Online using PowerShell?
No comments:
Please Login and comment to get your questions answered!