Apr 16 2019 05:25 PM
Hi,
I'm using Flow to create sub sites using a site template. Each site needs individual permissions, so the site is set up with a SharePoint Http request using a parameter to not inherit permissions. That means that there is no default site Owners, Members or Visitors group. That also means that members cannot share the site with others. This can be seen in the Access Request Settings dialog.
Manually, you can go to the page _layouts/15/permsetup.aspx and use the interface to set up new or existing groups for these three roles. But I need to do this with Flow. I use a SharePoint HTTP request to create a new group and I can get the group's ID.
How can I set this new group to be the default Member group with Flow, using SharePoint HTTP? The documentation about associatedMemberGroup is here https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj245549(v%3doffice.15), but I can't see how I can use the POST method in a SharePoint Http action. I tried
/_api/web/associatedMemberGroup(mygroupnumber)
but I get an error "Cannot find resource for the request associatedMemberGroup."
Ideas welcome.
May 26 2023 05:41 AM
Sep 06 2023 10:36 PM
Hi @Ankit Jetani, @Ingeborg Hawighorst, All User & Admin,
Did you ever get a solution for this?
I'm also trying to achieve this with Power Automate and REST API but couldn't find any solution so far :(
I had tried this but failed:-
Site Address: https://xxxx.sharepoint.com/teams/xxxxx/Sites/xxxxx
Method: POST
Uri: /_api/web/CreateDefaultAssociatedGroups("xxx Site Owners","","xxxx")
Error Details:-
The expression "web/CreateDefaultAssociatedGroups("xxxxSite Owners","","xxxx")" is not valid.
clientRequestId: xxxxx-a057-43ce-a00f-xxxxx
serviceRequestId: xxxxx-10be-7000-2f08-xxxxx
Please advise.
Thanks
Regards,
Micheale