web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using graph API to rem...
Power Automate
Unanswered

Using graph API to remove member works unexpected

(0) ShareShare
ReportReport
Posted on by 66

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}/

 

JCD-JTP_0-1621951026300.png

 

 

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...

Categories:
I have the same question (0)
  • Pratik_Patel Profile Picture
    Microsoft Employee on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard