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']}"
}
}