Forum Discussion
HowseBrad
Aug 16, 2023Copper Contributor
Office365Users.UserPhotoV2 failed: { "error": { "code": "ForbiddenByPolicy","message": "invalid_role
We have a PowerApp that is running to show the Photo of multiple users in our tenant. When you click on a user we set an image control's image source to Office365Users.UserPhotoV2(SelectedUser.Email)
Within the last two week, there are two users that get the error stated in the subject when they view everyone else's photo, but not when they view their own.
I believe this must be due to some Azure policy set in our tenant but I don't have the knowledge or permissions to troubleshoot this further.
Any information that can be provided would be appreciated. I also posted this on the PowerApps Community Forum too. Only response so far was to come to this forum and see if anyone could help.