Issue:
MS Graph version 1.0 is unable to fetch a user's profile image
Article:
The document at
https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
mentions that v1.0 of the API is not able to retrieve a user's profile image:
Note This operation in version 1.0 supports only a user's work or school mailboxes
and not personal mailboxes.
FYI, I make a request to
GET https://graph.microsoft.com/v1.0/me/photo/$value
And the error I receive is:
Error Domain: com.microsoft.graph.errors
Code=501"unimplemented"
This is a basic feature that all other major OAuth providers implement. When should we expect this feature to work?
We're in the process of enabling this feature on the V1.0 endpoint at present.
Historically access to these images was provided in a different manner which presented challenges that needed addressing first - we are finalizing that work currently, once completed we'll be able to finalize.
Excellent Kevin, thanks for doing this! I look forward to enabling this feature in our mobile apps.
We're in the process of enabling this feature on the V1.0 endpoint at present.
Historically access to these images was provided in a different manner which presented challenges that needed addressing first - we are finalizing that work currently, once completed we'll be able to finalize.
Hi@kevinbellinger, is there any update on this?
Please support for personal mailboxes. Thanks!
We're actively working on this becoming possible. Our hope is to release in the next 6-8weeks.
Any update on when this feature will be available? Does the feature require the user to have an Office365 subscription?
Here's the response from https://github.com/microsoft/WindowsTemplateStudio/issues/3293: The photo should be available on the v1 graph within the next few weeks for MSA accounts. Using beta graph is not recommended in production apps as they are subject to change (https://docs.microsoft.com/en-us/graph/api/overview?toc=.%2Fref%2Ftoc.json&view=graph-rest-beta)
Any updates on this yet?
For me,
Works: https://graph.microsoft.com/beta/users/{id}/photo/$value
Doesnt work: https://graph.microsoft.com/v1.0/users/{id}/photo/$value
Flagging @kevinbellinger for a follow up response. Hi @kevinbellinger - Can you please confirm if this feature is now available and whether an O365 or M365 subscription is required for users' profile images to show up? Also please see the above question from mohsinhere. It seems contradictory to the info from 3293.
We ran into some challenges with promoting this feature for MSA accounts. I'll come back with an ETA once we address the concerns.
Any ETA on this yet?
Hello, any ETA?
Here is the same...
works: https://graph.microsoft.com/beta/me/photo/$value
Doesnt work: https://graph.microsoft.com/v1.0/me/photo/$value
Any ETA for a fix?
Any updates on this yet?
For me,
Works: https://graph.microsoft.com/beta/users/{id}/photo/$value
Doesnt work: https://graph.microsoft.com/v1.0/users/{id}/photo/$value
Any updates on this?
I too cant manage to fetch a user profile pic nor update it:
GET / PUT https://graph.microsoft.com/v1.0/users/{id}/photo/$value
Have the necessary permissions mentioned in the docs, but still get the following error:
"code": "NoPermissionsInAccessToken",
"message": "The token contains no permissions, or permissions can not be understood."
Most helpful comment
Any updates on this yet?
For me,
Works: https://graph.microsoft.com/beta/users/{id}/photo/$value
Doesnt work: https://graph.microsoft.com/v1.0/users/{id}/photo/$value