https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http to get the members of that group Example: GET https://graph.microsoft.com/v1.0/groups/02bd9fd6-8f93-4758-87c3-1fb73740a315/members
where can i get {directory-object-id}
Navuluri, Sai Chandu
0
Reputation points
DELETE https://graph.microsoft.com/v1.0/groups/{group-id}/members/{directory-object-id}/$ref
I need {directory-object-id} value how can I get the value {directory-object-id}
Microsoft Security Microsoft Graph
13,721 questions
2 answers
Sort by: Most helpful
-
Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
2024-01-12T12:09:54.34+00:00 -
CarlZhao-MSFT 46,371 Reputation points
2024-01-15T09:57:44.59+00:00 You have several ways to find the object id of a group member, such as calling the List Group Members API or going to Azure AD > Groups > Find your group > Members > Find the target member you want to delete.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.