For one of my dashboards I want to show the user their profile picture for obvious personalisation reasons, and offer them the possibility to change it.
Most blog posts and articles on the Microsoft Docs site name a variety of endpoints I can leverage to get this data, but I'm just unable to get this to work with a simple postman call. Since I can't even get the photo, I wouldn't know how to change (update) it either.
The following endpoints don't work:
GET https://graph.microsoft.com/beta/users/{id}/photo/$value
GET https://graph.microsoft.com/beta/users/{id}/photo
GET https://graph.windows.net/myorganization/users/{id}/photo?api-version=1.6
GET https://graph.windows.net/myorganization/users/{id}/photo/$value?api-version=1.6
All of them either result in an "resource 'photo' does not exist, or 'Internal server errors' in the json response.
Note: I can query the graph api perfectly fine for other resources.