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.
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.
- Click on the “Upload Solution” button in the ribbon.
- Browse and select the site template WSP file and Click on “OK” to upload the site template.
- Once uploaded, click on the “Activate” button in the ribbon.
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.
- 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.