What Graph API can use to get user details

Krishna, Kunchala 1 Reputation point
2020-12-07T12:58:37.5+00:00

Hi Team ,

I would like to get AD users in PowerApps , what Graph API I can use..?

also how can i get user details dynamically example where users searching users details need to get user details.

as of now i can see only /v1.0/me and /v1.0/users
me is statically getting same users, but here how can i get other user details in instead of my details

/v1.0/users here it seems like getting few user but i can not get my or any other ad user details.

how can i get ad users..?
please reply

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

2 answers

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,301 Reputation points
    2020-12-07T13:41:47.747+00:00

    Hi @Krishna, Kunchala · Thank you for reaching out.

    You need to use https://graph.microsoft.com/v1.0/users/object_id_OR_upn_of_user. If you want to get all attributes of a given user, you can use beta endpoint, i.e., https://graph.microsoft.com/beta/users/object_id_OR_upn_of_user

    Read more: https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

    -----------------------------------------------------------------------------------------------------------

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

    0 comments No comments

  2. Krishna, Kunchala 1 Reputation point
    2020-12-07T14:12:28.357+00:00

    Hi amanpreetsingh

    Really thanks for reply,

    I have already followed this article,
    i just want to get display name and email id these two are enough.
    but issue is using (/v1.0/me) i can get only my details how can i get other user details ..?

    With this formula (UpdateContext({MyProfile:GraphAPIB2BGetUserProfile.Getmyuserprofile()})) i can get only my details always
    , but i would like to get other users from AD
    What API i can get dynamic user details in powerapp.

    Please reply

    0 comments No comments