I am successfully able to make HTTP request to azure active directory, but how do I retrieve an AAD group details?

Smriti Rai 60 Reputation points
2023-07-10T20:19:29.8433333+00:00

Hello,

I am successfully able to make HTTP request to azure active directory, but how do I retrieve an AAD group details?

I am trying to add a member to an AAD group and for that I was making HTTP request, and as you can see - I am getting 200 code which indicates success. However, how do I add the member to the group or retrieve who all are part of the group?

Would really appreciate if anyone could help me with this.

Regards

User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,713 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sandeep G-MSFT 13,496 Reputation points Microsoft Employee
    2023-07-12T12:02:25.4733333+00:00

    @Smriti Rai

    You can use graph explorer to make a HTTP request to Azure AD and also to add a member to a group.

    Follow below steps to do the same,

    And in the body below enter as below,

    Content-type: application/json
    
    {
      "@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/{id}"
    }
    

    "group-id" in the POST query is object ID of a group. and "id" is the object of the member you want to add to the group.

    Below is the screen shot of above task.

    User's image

    Let me know if you have any further questions on this.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful