How to SET associatedMemberGroup with Flow and REST api

%3CLINGO-SUB%20id%3D%22lingo-sub-463805%22%20slang%3D%22en-US%22%3EHow%20to%20SET%20associatedMemberGroup%20with%20Flow%20and%20REST%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-463805%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20using%20Flow%20to%20create%20sub%20sites%20using%20a%20site%20template.%20Each%20site%20needs%20individual%20permissions%2C%20so%20the%20site%20is%20set%20up%20with%20a%20SharePoint%20Http%20request%20using%20a%20parameter%20to%20not%20inherit%20permissions.%20That%20means%20that%20there%20is%20no%20default%20site%20Owners%2C%20Members%20or%20Visitors%20group.%20That%20also%20means%20that%20members%20cannot%20share%20the%20site%20with%20others.%20This%20can%20be%20seen%20in%20the%20Access%20Request%20Settings%20dialog.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20685px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109206i1CDD0AEAD96846C0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-04-17_12-22-50.jpg%22%20title%3D%222019-04-17_12-22-50.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EManually%2C%20you%20can%20go%20to%20the%20page%26nbsp%3B_layouts%2F15%2Fpermsetup.aspx%20and%20use%20the%20interface%20to%20set%20up%20new%20or%20existing%20groups%20for%20these%20three%20roles.%20But%20I%20need%20to%20do%20this%20with%20Flow.%20I%20use%20a%20SharePoint%20HTTP%20request%20to%20create%20a%20new%20group%20and%20I%20can%20get%20the%20group's%20ID.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20can%20I%20set%20this%20new%20group%20to%20be%20the%20default%20Member%20group%20with%20Flow%2C%20using%20SharePoint%20HTTP%3F%26nbsp%3B%20The%20documentation%20about%26nbsp%3B%3CSTRONG%3EassociatedMemberGroup%3C%2FSTRONG%3E%20is%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fsharepoint-visio%2Fjj245549(v%253doffice.15)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fsharepoint-visio%2Fjj245549(v%253doffice.15)%3C%2FA%3E%2C%20but%20I%20can't%20see%20how%20I%20can%20use%20the%20POST%20method%20in%20a%20SharePoint%20Http%20action.%26nbsp%3B%20I%20tried%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%2F_api%2Fweb%2FassociatedMemberGroup(mygroupnumber)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ebut%20I%20get%20an%20error%20%22Cannot%20find%20resource%20for%20the%20request%20associatedMemberGroup.%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIdeas%20welcome.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MVP

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.

 

2019-04-17_12-22-50.jpg

 

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.

 

0 Replies