Custom Script functionality will disable some functionality in SharePoint
If Custom Script is Off then you will lose some features which you use generally in SharePoint i.e. :
Admin can enable Custom Script on Tenant Level & Site Level.
2. Click on Admin
3. Expand Admin centers and click on SharePoint
4. On the SharePoint Admin Center click on Settings
5. Scroll down and locate the Custom Script
6. Click on Allow users to run custom script on personal sites
7. Click on Allow users to run custom script on self-service created sites
8. Click OK
Note: Changes to the tenant settings can take up to 24 hours to be applied.
1. Open the PowerShell console
2. Execute the command
- Save Site as Template will be disabled. Option to create Template from a site will be invisible from Site Setting.
- SharePoint Designer Pages that are not HTML can no longer be updated. Handling List: Create Form and Custom Action will no longer work. Subsites: New Subsite and Delete Site redirect to the Site Settings page in the browser. Data Sources: Properties button is no longer available.
- Save document library as template will be disabled & you won’t find option to save document library as template in Document Library Settings.
- Solution Gallery will be invisible from Site Settings.
- Theme Gallery will be disappear from Site Settings.
- Help Settings will be invisible from Site Settings.
- HTML Field Security No longer available in Library Settings.
- Solutions Gallery is no longer available in Site Settings.
- Uploading files that potentially include script The following file types can can not be uploaded to a library :
- .asmx
- .ascx
- .aspx
- .htc
- .jar
- .master
- .swf
- .xap
- .xsf
Admin can enable Custom Script on Tenant Level & Site Level.
To enable Custom Script on Tenant level follow these steps :
1. From your SharePoint site, click on the waffle icon2. Click on Admin
3. Expand Admin centers and click on SharePoint
4. On the SharePoint Admin Center click on Settings
5. Scroll down and locate the Custom Script
6. Click on Allow users to run custom script on personal sites
7. Click on Allow users to run custom script on self-service created sites
8. Click OK
Note: Changes to the tenant settings can take up to 24 hours to be applied.
To enable Custom Script on Site level follow these steps :
To enable custom scripts on modern sites, you will need to use SharePoint Online Cmdlets.1. Open the PowerShell console
2. Execute the command
Connect-SPOService -Url https://tenant-admin.sharepoint.com3. Execute the command bellow with the url for the modern site collection
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/contoso -DenyAddAndCustomizePages 0
Comments