Forum Discussion
zskoroczki
Jul 09, 2020Copper Contributor
Unable to delete team members via Graph
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 g...
Trinetra-MSFT
Dec 14, 2020Former Employee
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-request) 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
zskoroczki
Dec 14, 2020Copper Contributor
Thank you for your response. Will that method remove the user from the M365 group as well?
Thank you
Thank you
- Trinetra-MSFTDec 21, 2020Former Employee
zskoroczki , Removing member from group is something different, You can use following API to remove member from group
- zskoroczkiJan 06, 2021Copper Contributor
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.
- Nikitha-MSFTJan 06, 2021Former Employee
zskoroczki - You can delete team members using Remove member from team. Could you please try if that helps?