Home
%3CLINGO-SUB%20id%3D%22lingo-sub-333328%22%20slang%3D%22en-US%22%3ECreating%20a%20SharePoint%20Online%20modern%20team%20site%20without%20an%20Office%20365%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-333328%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3EFirst%20published%20on%20MSDN%20on%20Aug%2007%2C%202018%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20In%20SharePoint%20Online%2C%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FWhat-is-a-SharePoint-team-site-75545757-36c3-46a7-beed-0aaa74f0401e%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20modern%20team%20sites%20%3C%2FA%3E%20are%20created%20with%20an%20associated%20Office%20365%20group%2C%20by%20default.%20Someone%20recently%20asked%20me%20if%20there%20was%20a%20way%20to%20create%20a%20modern%20team%20site%20without%20the%20Office%20365%20group.%20The%20way%20to%20do%20it%20is%20via%20creating%20the%20site%20via%20the%20APIs%20or%20PowerShell%2C%20and%20choosing%20the%20STS%233%20template.%20If%20you're%20going%20to%20use%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20SharePoint%20PnP%20PowerShell%20%3C%2FA%3E%20%2C%20you'll%20need%20to%20leverage%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fnew-pnptenantsite%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20New-PnPTenantSite%20%3C%2FA%3E%20command%20to%20create%20the%20site.%20(This%20commandlet%20is%20for%20legacy%20site%20types)%20If%20you%20want%20to%20create%20a%20modern%20team%20site%20with%20the%20O365%20group%2C%20or%20communications%20sites%20(no%20O365%20group)%2C%20you'll%20need%20to%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fnew-pnpsite%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20New-PnPSite%20%3C%2FA%3E%20commandlet.%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-333328%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Aug%2007%2C%202018%20In%20SharePoint%20Online%2C%20modern%20team%20sites%20are%20created%20with%20an%20associated%20Office%20365%20group%2C%20by%20default.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-333328%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esite%20provisioning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-618402%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20SharePoint%20Online%20modern%20team%20site%20without%20an%20Office%20365%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-618402%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258410%22%20target%3D%22_blank%22%3E%40ronalg%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20share%20--%20trying%20to%20use%20API%20for%20creating%20modern%20team%20site%20without%20O365%20group%2C%20I've%20used%20a%20couple%20of%20different%20endpoints%20but%20haven't%20generated%20modern%20team%20site%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E_api%2FSPSiteManager%2FCreate%20--%20used%20WebTemplate%3A%20%22STS%233%22%20and%20got%20400%20error%3C%2FLI%3E%3CLI%3E_api%2FGroupSiteManager%2FCreateGroupEx%20--%20this%20created%20a%20site%20but%20as%20part%20of%20an%20O365%20group%3C%2FLI%3E%3C%2FUL%3E%3CP%3EWhat%20endpoint%20did%20you%20use%20to%20generate%20a%20modern%20team%20site%20only%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-624110%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20SharePoint%20Online%20modern%20team%20site%20without%20an%20Office%20365%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-624110%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20personally%20only%20ever%20done%20it%20with%20PnP%20PowerShell%2C%20via%20the%20New-PnPTenantSite.%20You%20can%20see%20the%20source%20for%20that%20command-let%20here%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FCommands%2FAdmin%2FNewTenantSite.cs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Fblob%2Fmaster%2FCommands%2FAdmin%2FNewTenantSite.cs%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-626478%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20SharePoint%20Online%20modern%20team%20site%20without%20an%20Office%20365%20Group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-626478%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20link%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258410%22%20target%3D%22_blank%22%3E%40ronalg%3C%2FA%3E%26nbsp%3B.%20After%20further%20research%2C%20it's%20not%20documented%20and%20all%20the%20examples%20found%20are%20using%20the%20communications%20site%20template%2C%20but%20we%20tested%20successfully%20with%20Flow%20using%20the%20endpoint%3A%26nbsp%3B%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2F_api%2FSPSiteManager%2FCreate%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%2F_api%2FSPSiteManager%2FCreate%3C%2FA%3E%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Band%20the%20webtemplate%20%3CSTRONG%3ESTS%233%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20can%20create%20Modern%20Team%20site%20collection%20without%20O365%20Group.%20Sample%20body%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22request%22%3A%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22__metadata%22%3A%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22type%22%3A%20%22Microsoft.SharePoint.Portal.SPSiteCreationRequest%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%7D%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22WebTemplate%22%3A%20%22%3CSTRONG%3E%3CFONT%20color%3D%22%23FF0000%22%3ESTS%233%3C%2FFONT%3E%3C%2FSTRONG%3E%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Title%22%3A%20%22showcasetest%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Url%22%3A%20%22%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2FsiteTitle%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2FsiteTitle%3C%2FA%3E%3CSPAN%3E%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Description%22%3A%20%22test%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Classification%22%3A%20%22%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22SiteDesignId%22%3A%20%2200000000-0000-0000-0000-000000000000%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Lcid%22%3A%201033%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22ShareByEmailEnabled%22%3A%20false%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22WebTemplateExtensionId%22%3A%20%2200000000-0000-0000-0000-000000000000%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22Owner%22%3A%20%22i%3A0%23.f%7Cmembership%7Cuser%40something.com%3C%2FSPAN%3E%3CSPAN%3E%22%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%22HubSiteId%22%3A%20%2200000000-0000-0000-0000-000000000000%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EReferences%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F259917%2Fcreate-new-site-collection-with-rest-api%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F259917%2Fcreate-new-site-collection-with-rest-api%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fsimonagren.github.io%2Fsites-sitedesign-rest%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsimonagren.github.io%2Fsites-sitedesign-rest%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F2148%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F2148%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E
Microsoft
First published on MSDN on Aug 07, 2018
In SharePoint Online, modern team sites are created with an associated Office 365 group, by default. Someone recently asked me if there was a way to create a modern team site without the Office 365 group. The way to do it is via creating the site via the APIs or PowerShell, and choosing the STS#3 template. If you're going to use SharePoint PnP PowerShell , you'll need to leverage the New-PnPTenantSite command to create the site. (This commandlet is for legacy site types) If you want to create a modern team site with the O365 group, or communications sites (no O365 group), you'll need to use the New-PnPSite commandlet.
3 Comments
Occasional Contributor

@ronalg Thanks for the share -- trying to use API for creating modern team site without O365 group, I've used a couple of different endpoints but haven't generated modern team site only.

 

  • _api/SPSiteManager/Create -- used WebTemplate: "STS#3" and got 400 error
  • _api/GroupSiteManager/CreateGroupEx -- this created a site but as part of an O365 group

What endpoint did you use to generate a modern team site only?

Microsoft

I've personally only ever done it with PnP PowerShell, via the New-PnPTenantSite. You can see the source for that command-let here: 

https://github.com/SharePoint/PnP-PowerShell/blob/master/Commands/Admin/NewTenantSite.cs 

Occasional Contributor

Thanks for the link @ronalg . After further research, it's not documented and all the examples found are using the communications site template, but we tested successfully with Flow using the endpoint: /_api/SPSiteManager/Create and the webtemplate STS#3.

 

This can create Modern Team site collection without O365 Group. Sample body:

{
"request": {
"__metadata": {
"type": "Microsoft.SharePoint.Portal.SPSiteCreationRequest"
},
"WebTemplate": "STS#3",
"Title": "showcasetest",
"Url": "https://tenant.sharepoint.com/sites/siteTitle",
"Description": "test",
"Classification": "",
"SiteDesignId": "00000000-0000-0000-0000-000000000000",
"Lcid": 1033,
"ShareByEmailEnabled": false,
"WebTemplateExtensionId": "00000000-0000-0000-0000-000000000000",
"Owner": "i:0#.f|membership|user@something.com",
"HubSiteId": "00000000-0000-0000-0000-000000000000"
}
}

 

References: 

  1. https://sharepoint.stackexchange.com/questions/259917/create-new-site-collection-with-rest-api
  2. https://simonagren.github.io/sites-sitedesign-rest/
  3. https://github.com/SharePoint/sp-dev-docs/issues/2148