SharePoint Online: Create Site Collection from Custom Template

Requirement: Create Site Collection with Custom Template in SharePoint Online

SharePoint Online: Create Site Collection from Custom Template

Creating subsites from a custom template is quite straightforward as in my other post: SharePoint Online: Create Subsite from Template using PowerShell. But if you want to create a site collection based on a custom site template, You have to follow the below steps: Assuming you have saved a site as template and the Site Template WSP file is ready, here are the steps to create a site collection with custom template in SharePoint Online:

Step 1: Create New Site Collection without Specifying Site Template

Let’s create a new site collection with the “Select a Template Later” option.

  • Go to your SharePoint Online Admin Center >> Click on the “Site Collections” link from the left navigation.
  • In the toolbar, click on “New” >> Private site collection.
  • Provide the URL and other parameters to create the Site Collection. In the “Template Selection” section select the “Custom” tab and pick “<Select a template later…>”.
  • Click “OK” to start creating a site collection. Wait for a minute for the site collection to appear on the site collections page.
    sharepoint online powershell create site collection from template

Step 2: Upload and Activate the Custom Site Template to the New Site Collection

Once the site collection is created from the above steps, browse to your new Site Collection. You’ll be asked to select a site template.

  • Click on the “Solution Gallery” link from the page.sharepoint online powershell create site collection with custom template
  • Click on the “Upload Solution” button in the ribbon.sharepoint online create site collection custom template
  • Browse and select the site template WSP file and Click on “OK” to upload the site template.create site collection with custom template sharepoint online
  • Once uploaded, click on the “Activate” button in the ribbon.powershell to create site collection with custom template sharepoint online

Step 3: Set the Site Template for the New Site Collection

  • Navigate to your new Site Collection again. You’ll get a page to select a site template this time as well.
  • In the “Template Selection”, Click on the “Custom” tab. Pick your custom template and click on the “OK” button to assign the site template to your site collection. SharePoint Online Create Site Collection from Custom Template using PowerShell
  • You’ll get a “Working on it” message, and it takes a while. Once the site template is assigned, SharePoint Online takes You’ll be taken to the “Set Up Groups for this Site” page, Select group names, and click on “OK” to complete the process.SharePoint Online Create Site Collection from Custom Template

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

2 thoughts on “SharePoint Online: Create Site Collection from Custom Template

  • July 27, 2021 at 11:32 PM

    Great article, unfortunately, no longer relevant. Looks like you cannot do this with a modern sharepoint site. There is no longer an option to save a site as a template. Even the create site screen, when you select other templates, it says it will be created as a 2013 site. Please advise!

    Reply
  • May 25, 2021 at 9:25 PM

    Great article! So, it looks like any permission changes made in the template, to the default SharePoint groups, are not retained in the sites that you create from that template. Does that sound about right?
    Thanks!

    Reply

Leave a Reply