Hi @Ayan Usmani ,
Upon on my test, you cannot get photos of directreports with a single Graph API request.
Step1: Get people reporting to a manager using Get /users/{user-id}/directReports
GET /users/{user-id}/directReports
Content-type: application/json
=========
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects",
"value": [
{
"@odata.type": "#microsoft.graph.user",
"id": "6ea91a8d-e32e-41a1-b7bd-d2d185eed0e0",
"businessPhones": [],
"displayName": "Conf Room Adams",
"givenName": null,
"jobTitle": null,
"mail": "Adams@Contoso.OnMicrosoft.com",
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": null,
"userPrincipalName": "Adams@Contoso.OnMicrosoft.com"
}
]
}
Step2: From the Graph response collection use the properties like id
or userPrincipalName
to get photos of the users returned in step1.
You may have to write code to loop through all the responses retuned in step1.
GET /users/{id | userPrincipalName}/photo/$value
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".