Not seeing your Solutions Gallery? Activate Custom Script

Note: The steps described on this article only apply to Classic SharePoint sites and/or pages. BindTuning's Modern solutions do not require the activation of the Solutions option.

By default, for personal sites and self-service created sites in SharePoint Online, the option of Custom Script is disabled. To have the Solution option under Web Designer Galleries available in your SharePoint Online, follow the steps below:

Note: If you don't see the Admin tile, you don't have Office 365 administrator permissions in your organization.

  1. Log in as a global admin or SharePoint admin;
  2. Select the app launcher icon in the upper-left corner and choose Admin to open the Office 365 Administrator center;
  3. On the left pane, select Show All followed by SharePoint;
  4. Select Settings;

    If you're currently seeing the Modern interface, click on Go to the classic settings page

  5. Under Custom Script choose to Allow users to run custom script on personal site and Allow users to run custom script on self-service created sites;
  6. Click OK.

Script-Editor-web-part-missing-in-SharePoint-Online.png

Info: It can take up to 24 hours for the change to take effect.

To allow custom script on a particular site collection immediately, use this PowerShell script through SharePoint Online Management Shell.

PowerShell to Enable Custom Script in SharePoint Online Site Collection

#Config Parameters
$AdminSiteURL="https://contoso-admin.sharepoint.com"
$SiteURL="https://contoso.sharepoint.com/sites/site1"
    
#Get Credentials to connect
$Cred = Get-Credential
    
#Connect to SharePoint Online Tenant Admin
Connect-SPOService -URL $AdminSiteURL -Credential $Cred
    
#Disable DenyAddAndCustomizePages Flag
Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False

You can also use PnP PowerShell to disable or enable “DenyAddandCustomizePages”.

#Site Variables
$AdminSiteURL = "https://contoso-admin.sharepoint.com"
$SiteURL = "https://contoso.sharepoint.com/sites/site1"
 
#Connect to Admin Center
Connect-PnPOnline -Url $AdminSiteURL -Interactive
 
#Disable Deny Add-Customize Pages
Set-PnPTenantSite -Identity $SiteURL -DenyAddAndCustomizePages:$False
Have more questions? Submit a request

Comments

BindTuning logo
Copyright Ⓒ 2021 Bind.
All rights reserved.
Privacy Policy
Cookie Policy
BindTuning
              Linkedin BindTuning Twitter BindTuning YouTube BindTuning Instagram BindTuning
              Facebook
Powered by Zendesk