Jan 17 2019 08:56 AM
Hello experts,
I have a Flow that uses the Graph API v1.0 endpoint in order to fetch the binary of an Office 365 group photo.
Here is the call:
https://graph.microsoft.com/v1.0/groups/{GroupId}/photo/$value
But it always returns a 403 forbidden;
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again.",
"innerError": {
"request-id": "9f5b88b0-4625-42bc-b5de-fecdd2d59756",
"date": "2019-01-17T16:37:01"
}
}
}
Though I think permissions on my AppRegistration are ok:
If I compare with required perms in the doc:
https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
Any idea on what could possibly go wrong here?
Thanks for your feedback,
Jan 17 2019 08:59 AM
Small precision...
If I call:
https://graph.microsoft.com/v1.0/groups/{GroupId}/photo
It works flawlessly so the authentication / permissions part should be OK.
Best,
Aug 28 2019 04:17 AM
The app only permission is no longer valid for photo, you need delegated permission in order to get the photo: