Hi,
I'm using graph to remove a user from a security group. I'm calling the following URL:
https://graph.microsoft.com/v1.0/groups/{groupId}/members/{userId}/
But when calling the URL from my flow, it deletes the user from the tenant.
Luckily I was able to restore the user from the Deleted users section.
But why did it delete the user, and not just removing the user from the group?
And the user was still a member of the group when restored...
As per the graph api documentation, you need to put /$ref at the end. Here's the link to the graph api documentation: Remove member - Microsoft Graph v1.0 | Microsoft Docs. Hope this helps.