@joel914823 yes you are right User().Email means your email, that's why I asked you to pass the primary email of the selected user for example: ThisItem.PrimaryEmail, This column is only shown when you are using the Users table as a data source.
Alternatively, you can use the lookup function inside the Office365Users.UserPhotoV2():
Office365Users.UserPhotoV2(LookUp(Users,'Primary Email' = ThisItem.Email).'Primary Email')
Note: I'm assuming the column email already exists in your current gallery data source.
If this is the answer for your question, please mark the post as Solved.
If this answer helps you in any way, please give it a like.
Thanks!