Hi @rjacome ,
Based on the formula you provided, I think there is something wrong with it. You should not use the "&&" operator within your If function, instead, you should use "||" operator.
More details about the difference between the "&&" operator and "||" operator, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators
I have made a test on my side, please consider take a try with the following formula (set the Visible property of button to following😞
If(
User().Email = "email@domain.com" || User().Email = "email2@domain.com" || User().Email= "email3@domain.com" || User().Email= "email4@domain.com" || User().Email= "email5@domain.com";
true;
false
)
In addition, you could also consider save these email address into a table, then you could compare current sign user email with the Table. You could also take a try with the following formula:
If(
User().Email in ["email@domain.com", "email2@domain.com", "email3@domain.com", "email4@domain.com", "email5@domain.com"];
true;
false
)
Please take a try with above solution, check if the issue is solved.
Best regards,