cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

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

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @muralikrishna12 ,

 

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

View solution in original post

5 REPLIES 5
Community Support
Community Support

Hi @muralikrishna12 ,

 

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

 

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.

Hi @muralikrishna12 ,

 

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

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.

Community Support
Community Support

Hi @muralikrishna12 ,

 

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

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Users online (62,810)