Skip Ribbon Commands
Skip to main content
Sign In

How to enable custom scripting on a group/communication site

How to enable custom scripting on a group/communication site


Question

Why doesn't my KWizCom app work on a group site or communication site?  I've enabled custom scripting tenant wide already.

Answer

Most KWizCom Apps require custom scripting to be enabled in order to work. Script files are normally blocked by default within SharePoint and because our apps use JavaScript in order to function, that means that if custom scripting is denied on a site, our products will not function. Group sites and communication sites are excluded when enabling custom scripting tenant wide and thus this has to be done manually at the group site using Powershell.

In order to enable custom scripting for these site templates, run the following command in Powershell:

Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com -credential admin@[tenant].onmicrosoft.com Set-SPOSite -Identity https://[yourtenant].sharepoint.com/[siteurl] -DenyAddAndCustomizePages 0


This can be done via SharePoint Online Management Shell and does not require you to wait 24 hours as opposed to doing this tenant wide via the SharePoint Admin center.



More information regarding how to enable custom scripting in various methods can be found here:




Created at 6/30/2022 4:43 PM by Igor Goldshtaub (UTC-05:00) Eastern Time (US and Canada)
Last modified at 7/3/2022 11:34 PM by Igor Goldshtaub (UTC-05:00) Eastern Time (US and Canada)
Total Views: 1001

Tags

Article Type: How-To
Recent Discussions
There are no items to show in this view.