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...
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-MSFT
Dec 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?
- zskoroczkiJan 06, 2021Copper ContributorThank you, I will try it. So in that case I should call both endpoints?