cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Remove member of a sharepoint Team site group using "send http request to sharepoint"

Hi,

 

I am looking for a way to remove a member of a group inside of a sharepoint using "send http request to sharepoint".

I know how to add a member to that group using http request (if it can help others) :

 

flow_send_http_request_remove_member.png

 

I tried using delete Method with the same Uri and Body but it's not working.

 

Hope someone can help.

Thanks in advance,

Sriks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

Here's what worked for me

screenshot.png

I'm using the ID's of the group and the user.  NOTE: This will remove the user from the group everywhere in the site collection.  There is no way to remove a user from a group for one permission assignment.  The group membership is stored at the site collection level.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Super User II
Super User II

try post instead of get

try added this to your headers:

 

"X-HTTP-Method""DELETE" 

Frequent Visitor

@Gristy 

Thanks for the help.

my new headers looks like that :

 

"headers": {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-HTTP-Method": "DELETE"
}

 

Sadly, i got an error running the flow : 

"Microsoft.SharePoint.Client.InvalidClientQueryException"
Dual Super User III
Dual Super User III

Here's what worked for me

screenshot.png

I'm using the ID's of the group and the user.  NOTE: This will remove the user from the group everywhere in the site collection.  There is no way to remove a user from a group for one permission assignment.  The group membership is stored at the site collection level.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Frequent Visitor

@Pstork1 

Thanks a lot, it's working !

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (15,658)