Is there a way that I can get the object ID from AAD so as to be able to add the user to the AAD group?

Smriti Rai 60 Reputation points
2023-07-27T22:47:36.83+00:00

Hello,

I am send HTTP request, and it's successfully working. But I want to retrieve the object ID of the user that needs to be added to the AAD group (as of now I'm directly doing get https://graph.microsoft.com/v1.0/groups/{group.id}/members/$ref to see if I am able to make HTTP request).

NOTE : I am using bot framework composer to do all of this.

I would really appreciate any help!!

Regards

Smriti

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
209 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,772 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,988 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,772 questions
{count} votes

Accepted answer
  1. CarlZhao-MSFT 37,626 Reputation points
    2023-07-28T10:07:01.4433333+00:00

    Hi @Smriti Rai

    Of course, you can list the set of users in AAD by calling the /users endpoint, where id is the user's object id.

    https://graph.microsoft.com/v1.0/users
    

    User's image

    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.


0 additional answers

Sort by: Most helpful