question

KalimShariff-0631 avatar image
0 Votes"
KalimShariff-0631 asked CarlZhao-MSFT commented

Can I get all profilephotos of all users in a group along with user data in single query from Azure AD?

Can I get all profile photos of all users in a group along with user data in single query from Azure AD?
And can u tell me the response for the endpoint : GET /groups/{id}/photo/$value

microsoft-graph-applicationsmicrosoft-graph-profile
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered CarlZhao-MSFT commented

It is not possible to use a single query to obtain all the profile photos and user data of all users in the group, and this feature is not currently supported.

Your endpoint in the question: GET /groups/{id}/photo/$value is only used to get the group's photo, not the profile photo of the user in the group.

At present, you can only use GET https://graph.microsoft.com/v1.0/groups/{id}/members to list the data of all users in the group first, and find the id of each user through user data, and then list each user’s profile photo by user id GET /users/{id | userPrincipalName}/photo/$value.



If an Answer is helpful, please click "Accept Answer" and upvote it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KalimShariff-0631 Would you please provide us with an update on the status of your issue?

0 Votes 0 ·