Hi @arnav2109,
Could you please share a bit more about the Gallery control within your app?
Further, could you please show more details about the ID that you mentioned? Is it the email id (or User principal name) of the user?
I assume that the ID that you mentioned is the email id of the user. I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:
Set the Items property of the Gallery control to following formula:
Office365Users.SearchUser()
Set the Image property of the Image control within the Gallery control to following formula:
If(!IsBlank(ThisItem.Id),Office365Users.UserPhotoV2(ThisItem.Id))
Please also take a try with the following formula:
If(!IsBlank(ThisItem.Id),Office365Users.UserPhoto(ThisItem.Id))
then check if the issue is solved.
In addition, please also take a try to re-create a new connection to the Office365 Users connector within your app, then try it again to check if the issue still exists.
Best regards,
Kris