Forum Discussion

HowseBrad's avatar
HowseBrad
Copper Contributor
Aug 16, 2023

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.

5 Replies

    • HowseBrad's avatar
      HowseBrad
      Copper Contributor
      no access to logs. I assume you are talking about the Logs under the Monitoring section of Azure?

      If I did would you think this would be the place to look for more information on what policy is stopping the access?
      • DKNZL's avatar
        DKNZL
        Copper Contributor

        HowseBrad 

         

        I have the same error, did you manage to progress this issue?

Resources