Richard McGrath's avatar
Richard McGrath
Brass Contributor
Nov 25, 2021
Status:
New

Graph API support for Photos property in select

In the Graph API, return the value of the user photos property not supported when searching/filtering. It always returns null.

Additional work is required to return photos after using the Select method.


Example of the problem and a current work around is here:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1173

 

It would be great if this property could be supported in some way.

 

 

3 Comments

  • Nagelzz's avatar
    Nagelzz
    Copper Contributor

    This is so needed.
    Having to iterate over 12.000 MgUsers and doing a Get-MgUserProfilePhoto for each of them is a painfully slow process. Just let me have the metadata in the Get-MgUsers photo property!

    I posted a similar question here, with a Graph Powershell SDK example code:
    https://learn.microsoft.com/en-us/answers/questions/1662352/getting-all-users-profile-photo-metadata-via-get-m?page=0&orderby=Helpful#answers