user505593 user505593 - 11 months ago 69
iOS Question

Azure AD Graph Get Users REST API call fails to return User entity thumbnailPhoto field

I am trying to integrate Windows Azure AD in to iOS application. I was able to do authentication with common consent framework and also able to access list of users in my active directory.
Format of my request,
, HTTP Method: GET,
HTTP Header: Authorization: Bearer <'access token'>

I am able to receive various other fields associated with users entity but it fails to return thumbnailPhoto field. Is there anything i need to do or its not supported as of now. Any solution to this issue will be helpful.

Answer Source

That is indeed the default behavior. You need to make an additional call to fetch the thumbnailPhoto property.

HTTP GET<directory_name_or_id>/users/<users_upn_or_objectid>/thumbnailPhoto?api-version=2013-11-08

Hope this helps