Many office 365 users face the issue that the root SharePoint site not showing all the web parts and features but these features and web parts are available in other site collections of the same tenant except the root site like http://mstalk.sharepoint.com.
This happen mostly when you setup a new tenant and try to add web parts on the pages and come to know that some most common web parts like Content Edit or script editor missing.
Do not try to activate different features, this is because custom scripts are disabled on root site collection for security reasons and due to that Script Editor, Content Editor web part and many other web parts or features are not available where user can add custom scripts. Follow the below steps to active the custom script.
You need to be have the global admin permissions for SharePoint on your tenant. Go to SharePoint admin center (URL will be: https://tenantName-admin.sharepoint.com) and click on settings.
Scroll down the settings page and you will the Custom Script section. Allow both options to enable scripting on the site collection as shown in below picture, this will allow user to have missing web parts and features on all site collections.
If you check the instructions, its mentioned that it will take 24 hours to enable custom script on your tenant which include all site collections and OneDrive.
But who have that much time and in most of the cases no one wants to enable it for all site collections. So, if you can use below PowerShell script to enable custom script on single site collection with immediate effect.
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
$userCredential = Get-Credential -UserName $adminUPN -Message "Enter password"
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
Set-SPOsite https://mstalk.sharepoint.com -DenyAddAndCustomizePages 0
The PowerShell script take few seconds to complete the execution. Once the script is completed, you can see the all the missing web parts are visible. Now you can also compare the first screenshot and below one for the different. I will be sharing complete list of missing features and web parts in next section.
Site features not available
Below is the list of site features which are not available when custom script is set to prevent from users.
- Save Site as Template
- Save document library as template
- Solution Gallery
- Theme Gallery
- Help Settings
- HTML Field Security
- Sandbox solutions
- SharePoint Designer(Create Form and Custom Action will no longer work.)
Blocked File Types:
Web parts not available
Below is the list of web parts which are not available when custom script is not allowed:
|Web part category||Web part|
|Business Data||Business Data Actions
Business Data Item
Business Data Item Builder
Business Data List
Business Data Related List
Excel Web Access
Visio Web Access
|Community||About This Community
Sites in Category
|Document Sets||Document Set Contents
Document Set Properties
|Forms||HTML Form Web Part|
|Media and Content||Content Editor
Silverlight Web Part
|Search-Driven Content||Catalog-Item Reuse|
|Social Collaboration||Contact Details
Also visit Allow or prevent custom script for more details.
Latest posts by Adnan Amin (see all)
- SharePoint Storage Metrics to Check size of a document Library - September 18, 2017
- Show or hide SharePoint list and libraries - September 12, 2017
- Using JSLink as an alternative for Calculated columns - August 28, 2017