Create non group attached Modern Team Site collection with Flow – Team site (no Office 365 group)

Creating a  site collection with Flow is not straightforward

The intention is to create a “Team site (no Office 365 group)”  – a modern teams site that does NOT have a corresponding team – the client wanted to group using Teams by client name and then have each project be represented by a channel – more on that another time.

createsitecollection

Flow Action: Send HTTP request to sharepoint

Site address:  https://tenant.sharepoint.com

Method:Post
Uri: /_api/SPSiteManager/create
Headers:

Accept: application/json;odata=none

Body:

{
“request”: {
“WebTemplate”: “STS#3”,
“Title”: “@{variables(‘ProjectName’)}“,
“Url”: “https://tenant.sharepoint.com/sites/@{variables(‘ProjectName’)}“,
“Description”: “test”,
“Classification”: “”,
“Lcid”: 1033,
“ShareByEmailEnabled”: false,
“Owner”: “i:0#.f|membership|Admin@mycompany.com
}
}

Site address needs to be your main tenant url (not the admin path)

Text in blue is obviously referencing variables in the flow or needs to be updated with your values

The Web Template is

  • non-group associated Team Site: STS#3
References here
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.