SharePoint Online: “Save Site as Template” Link Missing? Here is How to Enable!

Problem: “Save Site as Template” option is missing in SharePoint Online!

sharepoint online save site as template missing

The “Save Site as Template” option is unavailable on Office 365 group-connected and Communication sites! However, there is another reason why you don’t see the “Save site as Template” link under site settings: Custom script disabled!

How to Enable Save Site as Template in SharePoint Online?

To resolve this problem, we need to enable custom scripts. Here is how to fix the save site as template is not available issue:

  1. Login to SharePoint Online Admin Center.
  2. Click Settings from the left navigation >> Scroll down to the “Custom Script” section.
  3. Set “Allow users to run custom script on personal site” and “Allow users to run custom script on self-service created sites” options. 
    sharepoint online save site as template error
  4. Click on “OK” to save your changes.

This enables the save site as template link. However, this change may take up to 24 hours to reflect. To enable scripting on a particular site collection immediately, use this PowerShell script in SharePoint Online Management Shell.

SharePoint Online save list as template URL:

PowerShell to Fix Save Site as Template Option Missing in SharePoint Online Issue:

Use this PowerShell script to enable custom scripting immediately.

#Config Parameters
#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

This brings it back to the save site as template option in the SharePoint Online site collection:

save site as template not available in sharepoint online

Please note, the change by PowerShell script can be overridden in the next 24 hours If the settings don’t match in the SharePoint Online Admin center! So ensure you have the same settings (either disable or enable) in PowerShell and the SharePoint Online Admin center “Custom Script” section.

Save as Template option is not supported for publishing sites and in sites with publishing server infrastructure feature enabled!

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published. Required fields are marked *