I'm trying to make certain buttons / labels / galleries only visible to certain users. One user is easy:
fx = If( User().Email = xxxx@domain.com, true, false)
I'm having issues with attempting to do it for multiple users. I've tried
fx = If( User().Email = xxxx@domain.com, true, false,
If( User().Email = xxxx@domain.com, true, false))
as well as:
If( User().Email = "xxxx@domain.com", true, false,
Or(If(User().Email = "xxxx@domain.com", true, false)))
Both will display my for me and display the message: Text fx = "You should be able to see this " & User().FullName
I'm sure I'm making a simple mistake for the multiple users. If you know how to extend it out for 3 - 5 users, that would be helpful as well! Thank you for the assistance!
Solved! Go to Solution.
Figured out the switch function is much easier to use.
Switch(User().Email,
"user1@domain.com",true,
"user2@domain.com",true,
"user3@domain.com", true
)
Add users as necessary
Figured out the switch function is much easier to use.
Switch(User().Email,
"user1@domain.com",true,
"user2@domain.com",true,
"user3@domain.com", true
)
Add users as necessary
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
193 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
246 | |
119 | |
82 | |
74 | |
69 |