Unable to delete team members via Graph

Copper Contributor

A couple of weeks ago the delete group member method stopped working:

DELETE https://graph.microsoft.com/v1.0/groups/{id}/members/{id}/$ref

 

The deleted user is still able the to connect to the group via Teams (webapp, clientapp) and send messages to channels, etc. Only the related SharePoint site gets unavailable for the user.

 

Thank you,

Zsolt

14 Replies

@zskoroczki - We could able to reproduce the issue on our side. Raised a bug

 

Thank you!
Any updates ?

@DMarcolo - we are tracking it internally we don't have ETA to share when it will be fixed

 

@Nikitha-MSFT  Any updates?

@zskoroczki - Please use Remove members from team for instant deletion.

Unoftunatley I can not use beta version in my project.

@zskoroczki , We are checking this with our engineering team for v1.0. You can also look at suggestion made by Wajeed if possible to use beta api in your project.

When I tried to [remove member from Team](https://docs.microsoft.com/en-us/graph/api/team-delete-members?view=graph-rest-1.0&tabs=http#http-re...) using Graph API, it works fine, Removing member from team/Group in sync takes at least 48 hours so better to use remove member graph api using membership id
Thank you for your response. Will that method remove the user from the M365 group as well?

Thank you

@zskoroczki , Removing member from group is something different, You can use following API to remove member from group

@Trinetra-MSFT In that case we are going back to my original post. My goal is to remove a group member via graph in order to make the related resources (Teams, SharePoint, etc.) unavailable for the user. A couple of months ago the "DELETE /groups/{id}/members/{id}/$ref" endpoint worked as expected but now the deleted users are still able to access the Team (but not the SharePoint) even weeks later.

@zskoroczki - You can delete team members using Remove member from team. Could you please try if that helps?

Thank you, I will try it. So in that case I should call both endpoints?