Forum Discussion
Removing Custom Scripting on SharePoint Sites
Hello everyone,
Are they really removing custom scripts on classic SharePoint Sites?
Could someone help me understand the following message from the M365 message center?
Are they planning to remove the Custom Scripts setting only from the Admin Center and keep the possibility to enable it via PowerShell, or will they block running custom scripts on classic pages completely?
"Message Summary
In the SharePoint admin center, there is a Custom Script setting that controls whether users can run custom scripts in OneDrive and SharePoint sites. This setting will be removed in March 2024.
By removing this setting, Administrators will no longer be able to control the default behavior on self-service created sites or personal sites. However, customers will still be able to temporarily enable the ability to run custom script by using PowerShell, as described in the articles mentioned below.
By removing this setting, administrators will no longer be able to add, modify or remove scripts. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites.
When this will happen:
This setting will be removed in March 2024.
How this will affect your organization:
When this Custom Script setting is removed, you will no longer be able to add, modify or remove scripts within OneDrive and SharePoint sites unless administrators temporarily allow that by turning the setting on specific site collections using PowerShell. This will not impact the ability to execute existing scripts in OneDrive and SharePoint sites.
What you need to do to prepare:
This setting will be removed by default in March 2024, but you can request an extension within the SharePoint admin center. This will keep the setting available until June 2024.
Review the following for additional information: Allow or prevent custom script"
This is what confuses me:
"However, customers will still be able to temporarily enable the ability to run custom script by using PowerShell, as described in the articles mentioned below."
Is this going to affect custom actions on classic pages?
Thank you very much.
- TimLBSteel ContributorMost of the answers appear to be documented on this page: https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script
Scroll 2/3's towards the bottom of the page and it lists behaviors that are affected when disabling custom scripts. Also looks like they're deploying a new feature in the SPO admin center to report on sites that have custom scripts enabled. - Joshua_ZelvyIron Contributor
I just opened a case with Microsoft Unified support, the overview is very confusing. It would be helpful to have examples of scripts that are impacted as well as the process to update a script. Finally, a sample script to report on the impacted sites would have been a nice touch.
- MattWhittleCopper Contributor
Joshua_Zelvy -- what was the response?
- ardas91Copper Contributor
VladSchiop Will it also remove the integration of Keno UI applications running on SharePoint Online?