web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Element's visibility
Power Apps
Answered

Element's visibility

(0) ShareShare
ReportReport
Posted on by 62

Hallo everyone,

I am asking for help with a simple question.

I have a Image control.

I want this item to be visible only to certain people.

When i configure for single user everything works. But when I add one more - none of them see it.

By Visible property I set:

User().Email = "user@domain.com"

the following options do not work:

If(User().Email = "user1@domain.com" Or User().Email = "user2@domain.com", true, false)
Or(User().Email = "user1@domain.com", User().Email = "user2@domain.com")

what is the right thing to do in this situation?

Thanks in advance!

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @kalakosha 

     

    You should use || instead of Or in your formula.

     

    Try this formula

     

    If( User().Email = "user1@domain.com" || User().Email = "user2@domain.com", true, false )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Kalakosha Profile Picture
    62 on at

    Hi @Rajkumar_404 !

    Thanks for you quick answer.
    I tried the suggested option. Unfortunately, it does not work. I also tried the same expression without If

    User().Email = "user1@domain.com" || User().Email = "user2@domain.com"

     

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this 

     

    If(
    (User().Email = "user1@domain.com")
    ||
    (User().Email = "user2@domain.com"),
    true,
    false
    )

  • Verified answer
    Kalakosha Profile Picture
    62 on at

    Does not work also.
    Butyour proposed option led me to the idea of creating a collection from specific users by Visible  property of the Screen 

    Collect(AllowUsers, "user1@domain.com", "user2@domain.com")

     and then I change Visible property of Image control

    If( User().Email in AllowUser, true, false)

     

    And this variant works.

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    If you find the solution, kindly mark it as accepted and close this thread, as it will assist others in finding solutions.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard