Forum Discussion

Sara Slater's avatar
Sara Slater
Copper Contributor
Mar 14, 2018

Site Templates in SPO

I understand that Site Templates are not available in SPO. Is there another solution that MS has for replacing this? Having a site template greatly reduces the amount of work for when we need to create multiple sites with the same libraries, lists, webparts on the landing pages etc. We are not comfortable with allowing scripts for security reason. Is there another way to streamline this process?

6 Replies

  • We are using PnP script created by Microsoft partner, works really well. There are some minor manual changes that we make following site creation to 'personalise' that site for specific business needs but on the whole it is saving over an hour of work per site. We also have the capability setup to create multiple sites using the script just by entering details into a CSV. The PnP runs off of an XML file. Different XMLs can be created and run for different templates.

  • You could use the PnP provisioning template to export any site as a PnP template and create a new site using that. Follow below link to start with PnP.

    https://github.com/SharePoint/PnP-Provisioning-Schema

    • jcgonzalezmartin's avatar
      jcgonzalezmartin
      MVP
      Johanson is correct, site templates actually exists in SPO, but you need at least at the beginning to have a developer to created your site templates...the old way to save a site as template is not available in modern SPO sites and in general you should avoid to use it
      • Sara Slater's avatar
        Sara Slater
        Copper Contributor

        Is allowing Site Scripts different than allowing end user scripts? Looking at this page https://support.office.com/en-us/article/allow-or-prevent-custom-script-1f2c515f-5d7e-448a-9fd7-835da935584f, we do not want to allow scripts because of the security concerns. Are these the same or are they different? Does the PnP solution have security implications?

Resources