Forum Discussion
JBergqvist
Feb 19, 2020Brass Contributor
What happened to the group/teams photo endpoint in graph api? Not fetching photos
Hi Guys! I have developed a solution that lists groups and teams with their basic information and photo. This has worked for years in different forms against the graph api endpoint: https://g...
Gousia_Begum
Microsoft
Feb 20, 2020JBergqvist We could not repro the issue on our side. I tried getting the photo using the api you tried and it works fine for me. Could you please confirm if the group, you are trying actually has a photo?
- JBergqvistFeb 20, 2020Brass ContributorHi Gousia! Thank you for your reply.
Yes the team has a photo.
The code works when you are a member of the team but not otherwise.
So its obviously a permission issue. But this is not how things have worked before.
Can you confirm, are you able to load photos for teams that you are not a member of?
Kind regards, johan- Gousia_BegumFeb 20, 2020
Microsoft
JBergqvist You can fetch the photo of the team only if you are a member of that team because it is based on Delegated permissions. Did you try this in Graph Explorer earlier?
- JBergqvistFeb 20, 2020Brass ContributorYes this has worked before. With delegated permission, just as much fetching the title of a team. I'm pretty sure of it.
I noticed this a few weeks ago, before this everything worked as expected.
I dont understand why the picture for a group or team should be seen as sensitive and hence be locked out of results. Group.Read.All Shoud be sufficient for the picture. Or give me a standard / default picture just as when no image is added to a team.
I have gone through if some more permission has been added before but cant find any reason for why it has worked before.
Thanks