web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / What Graph API need to...
Power Apps
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 Microsoft Employee

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.

 

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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
    Microsoft Employee on at

    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
    Microsoft Employee on at

    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.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    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

  • niklasjegg Profile Picture
    539 on at

    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!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard