cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeKi72
Post Patron
Post Patron

Get all the users from the Search for user (V2) connector included their picture.

Dear experts,

 

I have a flow that gets all the users from Microsoft Graph with the Search for user (v2) connector simply by

leaving the search term blank. It will then get all the users. But i want to get the profile picture also. But i 

think my flow is not correct because with every user i get the same profile picture !

 

PeKi72_0-1670269306010.png

Gr. P

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @PeKi72,

You should refer to each item within the Apply to each so that you could get the user photo of each item within.

 

So you should use the following expression instead:

For content type:

body('Get_user_photo_(V2)')?['$content-type']

For content:

body('Get_user_photo_(V2)')?['$content']

 

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @PeKi72,

You should refer to each item within the Apply to each so that you could get the user photo of each item within.

 

So you should use the following expression instead:

For content type:

body('Get_user_photo_(V2)')?['$content-type']

For content:

body('Get_user_photo_(V2)')?['$content']

 

Best Regards,
Qi

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,782)