I'm trying to hide some data cards in my SharePoint form to everyone apart from 15 administrators. Based on other messages on this forum I have tried the below formulas but they don't seem to work for the users helping me test - they can still them despite not being a user mentioned in the formula. I have tried the following in the 'Visible' function bar:
(User().Email in ["user.name1@XXXX.com" Or "user.name2@XXXX.com" Or "user.name3@XXXX.com" Or "user.name4@XXXX.com"])
and
If(User().Email in ["user.name1@XXXX.com" Or "user.name2@XXXX.com" Or "user.name3@XXXX.com" Or "user.name4@XXXX.com"],true, false)
If I remove my own name from the above lists, I lose the visibility of the data card myself in the Power Apps studio view, which is why I'm a bit stuck as to why it's not working otherwise in the browser for my colleagues. I have tried asking them to refresh using f5, use another browser, incognito mode etc.