Skip to main content

Notifications

Power Automate - Using Connectors
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...

  • Pratik_Patel Profile Picture
    Pratik_Patel on at
    Re: Using graph API to remove member works unexpected

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics