SharePoint Online Site Template ID list for PowerShell
If you want to automate certain parts of your SharePoint Online provisioning process, or simply need a one-time creation of many sites, you probably want to automate everything with PowerShell! But in order to create the new sites with the intended template, you need to know the right template ID that needs to be passed trough PowerShell. So this blog post is a list of all of the different SharePoint Online Site Template ID you will need for either creating a large number of sites, or maybe just creating reports of your SharePoint Online environment!
Modern SharePoint Sites
Template ID | Title | Description / Additional Info |
STS#3 | Team site (no Office 365 group) | A site with no connection to an Office 365 Group. |
SITEPAGEPUBLISHING#0 | Communication site | Publish dynamic, beautiful content to people in your organization to keep them informed and engaged on topics, events, or projects. |
GROUP#0 | Office 365 Group associated Team Site | For Reporting Only – You cannot create sites with this template |
POINTPUBLISHINGPERSONAL#0 | Delve Blog | For Reporting Only – Delve Blogs are being Retired |
SPSPERS#10 | OneDrive for Business personal Site | For Reporting Only – Use the Request-SPOPersonalSite cmdlet to pre-provision a OneDrive for Business ite |
RedirectSite#0 | Redirect Site | Placeholder template for the old URL when you rename the Site URL. This is for reporting only and those sites are only created by Microsoft programmatically. |
TEAMCHANNEL#0 | Teams Private Channel Site | Lightweight Site Collection provisioned for each Teams Private Channel Site. This is For Reporting Only, and not for manual provisioning trough SharePoint Online |
As you can see, while there are 7 different “modern” templates, however only two of them can really be used for creation, the other 4 can only be used for reporting purposes. To use those templates, you can use the New-SPOSite PowerShell cmdlet as in the example below:
New-SPOSite -Title "TemplateTest - 01" -Url https://contoso.sharepoint.com/sites/Test123 -Template " STS#3" -Owner vlad@contoso.com -StorageQuota 1024
Modern SharePoint Sites – SharePoint PnP PowerShell Module
If you prefer to use the SharePoint PnP PowerShell Module to automate things, this is the list of sites you can use!
Site Type | Title | Description / Additional Info |
CommunicationSite | Communication site | Publish dynamic, beautiful content to people in your organization to keep them informed and engaged on topics, events, or projects. |
TeamSite | Office 365 Group (including a Team Site of course) | Creates a Office 365 group together with it’s team site! |
To create a site using those templates, you can use the New-PnPSite PowerShell cmdlet as in the example below:
New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso
New-PnPSite -Type TeamSite -Title 'Team Contoso' -Alias contoso
Using the New-PnPSite PowerShell cmdlet, you can also specify which type of Communication Site you want out of the three default ones by providing the name in the -SiteDesign parameter as in the example below.
New-PnPSite -Type CommunicationSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -SiteDesign Showcase
Lastly, if you want to use PnP to let’s say create any of the templates in the Modern SharePoint Sites section (ex: #STS3) you can use the New-PnPTenantSite PowerShell cmdlet as in the example below:
New-PnPTenantSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Owner user@example.org -TimeZone 4 -Template STS#3
Classic SharePoint Sites
Template ID | Title | Description |
STS#0 | Classic Team Site | A place to work together with a group of people. |
APPCATALOG#0 | App Catalog Site | A site for sharing apps for SharePoint and Office |
BDR#0 | Document Center | A site to centrally manage documents in your enterprise |
BICenterSite#0 | Business Intelligence Center | A site for presenting Business Intelligence content in SharePoint. |
BLANKINTERNETCONTAINER#0 | Publishing Portal | A starter site hierarchy for an Internet-facing site or a large intranet portal. This site can be customized easily with distinctive branding. It includes a home page, a sample press releases subsite, a Search Center, and a login page. Typically, this site has many more readers than contributors, and it is used to publish Web pages with approval workflows. |
BLOG#0 | Blog | A site for a person or team to post ideas, observations, and expertise that site visitors can comment on. |
COMMUNITY#0 | Community Site | A place where community members discuss topics of common interest. Members can browse and discover relevant content by exploring categories, sorting discussions by popularity or by viewing only posts that have a best reply. Members gain reputation points by participating in the community, such as starting discussions and replying to them, liking posts and specifying best replies. |
COMMUNITYPORTAL#0 | Community Portal | A site for discovering communities. |
DEV#0 | Developer Site | A site for developers to build, test and publish apps for Office |
ENTERWIKI#0 | Enterprise Wiki | A site for publishing knowledge that you capture and want to share across the enterprise. It provides an easy content editing experience in a single location for co-authoring content, discussions, and project management. |
OFFILE#1 | Records Center | This template creates a site designed for records management. Records managers can configure the routing table to direct incoming files to specific locations. The site also lets you manage whether records can be deleted or modified after they are added to the repository. |
PRODUCTCATALOG#0 | Product Catalog | A site for managing product catalog data which can be published to an internet-facing site through search. The product catalog can be configured to support product variants and multilingual product properties. The site includes admin pages for managing faceted navigation for products. |
PROJECTSITE#0 | Project Site | A site for managing and collaborating on a project. This site template brings all status, communication, and artifacts relevant to the project into one place. |
SRCHCEN#0 | Enterprise Search Center | A site focused on delivering an enterprise-wide search experience. Includes a welcome page with a search box that connects users to four search results page experiences: one for general searches, one for people searches, one for conversation searches, and one for video searches. You can add and customize new results pages to focus on other types of search queries. |
SRCHCENTERLITE#0 | Basic Search Center | A site focused on delivering a basic search experience. Includes a welcome page with a search box that connects users to a search results page, and an advanced search page. This Search Center will not appear in navigation. |
visprus#0 | Visio Process Repository | A site for viewing, sharing, and storing Visio process diagrams. It includes a versioned document library and templates for Basic Flowcharts, Cross-functional Flowcharts, and BPMN diagrams. |
While knowing what the classic SharePoint templates are for reporting purposes, I recommend only creating modern SharePoint sites from now on, and not adding any classic SharePoint sites to your environment, as it would add extra content to migrate to modern in the future!
Leave a comment and don’t forget to like the Vlad Talks Tech Page on Facebook and to follow me on Twitter here for the latest news and technical articles on SharePoint. I am also a Pluralsight author, and you can view all the courses I created on my author page. |