web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a team site col...
Power Automate
Answered

Create a team site collection with private group using PowerAutomation Flow

(1) ShareShare
ReportReport
Posted on by 70
Dear all,
 
I have a requirement to create a team site collection with private microsoft office 365 group using Power Automation flow. I am using Send an Http request to SharePoint action as below. It works if I pass STS#3 for WebTemplate in the below. But, that creates a team site collection without Office 365 group. I tried passing STS#0 and GROUP#0. It does not work. It throws an error -  siteTemplate\r\nParameter name: Performing this operation on a site with this template is not allowed.
Please share your ideas to resolve this issue. I appreciate your help and support. Thank you so much!
==================================================================================
Uri: /_api/SPSiteManager/create
Method: Post
Body:
{
  "request": {
    "Title": "@{triggerOutputs()?['body/Title']}",
    "Url":"https://root site collection url/sites/@{variables('varSiteUrlText')}",
    "Lcid": 1033,
     "Description":"@{triggerOutputs()?['body/Description']}",
    "WebTemplate":"GROUP#0",
    "Owner":"@{triggerOutputs()?['body/Owner/Email']}"
   
  }
}
 
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at
    Like mentioned in the docs, only SITEPAGEPUBLISHING#0 and STS#3 are allowed in that Create method.
     
    You can use the CreateGroupEx method instead. The uri would be:
    _api/GroupSiteManager/CreateGroupEx
     
    The Body payload would also be different. 
     
    Kevin McDonnell has written a nice blog about this method:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard