Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

What Graph API need to use to get user details and how to code in powerapps to get user details.

(0) ShareShare
ReportReport
Posted on by

Hi Mates,

i have followed below artical 

https://www.c-sharpcorner.com/article/custom-connector-to-connect-graph-api-in-powerapps/

This is get my profile details

here i would like to get user details like, users need to search and get AD users 

 Graph API : https://graph.microsoft.com/v1.0/me

PowerApps Code: UpdateContext({MyProfile:GraphAPI.getmyuserprofile()})

but here what Graph API need to user to get user details dynamically..? and what code need to write in powerapps where users can search a purticular user details.

https://cloudatica.medium.com/power-apps-custom-connector-using-microsoft-graph-apis-d3b1d821e4fd

This is get users.

PowerApp Code: ClearCollect(AllUsers, ‘graph-api-demo’.GetUsers().value)

from all users i tried to search my name from AllUsers(assigned to gallery) but i don`t find my details .

 

Any one help me what API and code to search to get user details from AD group.

 

  • niklasjegg Profile Picture
    502 on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hello @v-siky-msft 

     

    do you happen to know a way to get all groups in a tenant? I can use the Top:999 quere any everything but i have aroung 2100 groups. How can i do this? 

     

    Thank you!

  • Verified answer
    v-siky-msft Profile Picture
    on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hi @Anonymous ,

     

    If you want to get specific user's detail, please try to the following Http request. HTTP request: Get a user  , then input the User Email or User ID as Parameter to retrieve the User's Details.

     

    Snipaste_2020-12-11_09-43-56.png

    Another workaround is to LookUp() function to retrieve specific User from All users Collection you mentioned above in PowerApps.

    LookUp(AllUsers, userPrincipalName= "{Test EMail}")

     

    Sik

  • Community Power Platform Member Profile Picture
    on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hi @v-siky-msft ,

    No, really I don`t understand how to get user details any user not only my details from AD.

    Any assistance, please.

  • v-siky-msft Profile Picture
    on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hi @Anonymous ,

     

    Yes, and does the solution I proposed above make sense?

    If not, what is issue you are facing? Do you mean you can't find your name from the AllUsers collection?

    Sik

  • Community Power Platform Member Profile Picture
    on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hi @v-siky-msft 

    I just want to get AD users using Graph API.

    When the user searches Combobox then it should search and get the correct user like office365Users.

    when the user it typing then it should display based on user-entered name.

  • v-siky-msft Profile Picture
    on at
    Re: What Graph API need to use to get user details and how to code in powerapps to get user details.

    Hi @Anonymous ,

     

    Could you please share more details about your needs?  Do you mean you can find you in response of All users?

     

    The reason could be that 'https://graph.microsoft.com/v1.0/users' API request output the first 100 user by default, to modify the output limit, please define an OData Top query (Maximum: 999) as follows.

    Snipaste_2020-12-08_14-46-49.png

    Snipaste_2020-12-08_14-50-42.png

    Hope this helps.

    Sik

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard