Forum Discussion
Saving Custom Link as a Template from a library on O365 group site
- May 10, 2017
"To enable scripting on a particular site collection immediately, use the following PowerShell command:
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
Make sure the scripting setting in the admin portal matches what you set using PowerShell, or the site collection setting may be overridden again in the next 24 hours."
Thanks Bastian for your response and what you say makes sense however for me on my tenant we have enabled scripting about 4 months ago.
"Allow users to run custom script on self-service created sites"
My initial thoughts was that the site I am working on was created before we enabled this, so I created another group\site to test and got the same outcome.
Is there a powershell script to directly check the scripting settings for a site?
Thanks,
Shaun
"To enable scripting on a particular site collection immediately, use the following PowerShell command:
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
Make sure the scripting setting in the admin portal matches what you set using PowerShell, or the site collection setting may be overridden again in the next 24 hours."
- AnonymousMay 10, 2017
Thanks, I have run this script which has set the option to disbaled for:
"DenyAddAndCustomizPages" this has now given me the option to save the list as a template which is great.
Whats confusing is you mention to check the admin portal to make sure this matches, I have uploaded a screenshot of the current settings in SharePoint Admin center which shows for personal sites its disabled but for self-service sites its enabled. It feels like this setting is not being applied to our self-serve sites created when groups are created.
Shaun
- Bastiaan KortenboutMay 10, 2017Brass Contributor
Great to hear it's working now.
You could open a support ticket at Microsoft to find why this setting was not initially set when creating a new group. Please let us know if you get some relevant feedback
- AnonymousMay 17, 2017
To complete this thread, I raised a support case with Microsoft who confirmed there is no setting to enable scripting for group sites by default like there is for SharePoint Online. The only way to enable scripting on a group site is to run the Powershell command.
Regards,
Shaun