cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bradleyh
Level: Power Up

Send http request to sharepoint to create subsite, and set default owner, member groups

 

23 October 2018

08:58 AM

Hi,

I am using flow and send HTTP request to Sharepoint to provision some subsites, going for a non azure /pnp option if I can.

 

I create a subsite in a SharePoint online using the method posted below via REST API / Flow

However the UseUniquepermissions has two values, true or false.

If its false it inherits the parent permissions / groups as expected.

If its false you just get an empty Sub site and no site groups.

 

I want to replicate the ability of _layouts/15/permsetup.aspx where you can create specific owner, member, visitor groups of the subsite

So whilst I can manually create the standard owner, member , visitor groups and mimic them there is no way I have found to set one of these as the default associated groups via REST API. AssociatedOwnerGroup, AssociatedMemberGroup etc Lots of people say GET works but POST / MERGE doesn’t)

 

So either I require the ability to set a default group via REST API would suffice (this just helps out when people share the site as it will default to the appropriate group), or the ability to somehow set the out of the box associated groups AssociatedOwnerGroup, AssociatedMemberGroup etc would be good all via REST API.

 

Any help appreciated as this is my last stumbling block!

regards

Brad

 

 {'__metadata':
{ 'type': 'SP.WebInfoCreationInformation' },
'Url':'theurl',
'Title':'thesubsite',
'Description':'Some Description',
'Language':'1033',
'WebTemplate':'STS#3',
'UseUniquePermissions':true}
}

3 REPLIES 3
Community Support Team
Community Support Team

Re: Send http request to sharepoint to create subsite, and set default owner, member groups

Hi @bradleyh,

 

Could you share a screenshot of your current configuration?

Could you share the detailed configuration of Send http request to SharePoint?

In addition, please check and see if the following link would help:

SharePoint Rest API

It would be helpful if you could post more screenshot and we may provide a proper workaround for you.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Administrator
Administrator

Re: Send http request to sharepoint to create subsite, and set default owner, member groups

Hey, @bradleyh!

Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Super User
Super User

Re: Send http request to sharepoint to create subsite, and set default owner, member groups

Hi!

 

You can use PnP templates in Microsoft Flow to provision SharePoint entities.

 

This article describes how to provision sites, lists, libraries, and Modern pages using PnP templates from Microsoft Flow. 

 

Note, this is provided as an action in the Plumsail SP connector, which is a part of Plumsail Actions product. It is a paid product.

 

1_-m6kU7Okrrh2t2qUFy9zPw.png

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,387)