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 / If user is a superviso...
Power Apps
Answered

If user is a supervisor then show visible

(0) ShareShare
ReportReport
Posted on by 93

Hello, I am building an app and I need a control in it that is only visible to users that have been labeled a supervisor in Sharepoint. The Sharepoint list has the following columns.

Employee NameEmployee IDEmployee EmailLast4DigitsOnCardSupervisorSupervisorEmailIsSupervisor
John Doe1234johndoe@gmail.com1234Jane Doejanedoe@gmail.comYes

 

I am trying to do a lookup to return the users record in the list and then check if the user has a "Yes" value under the "IsSupervisor" Column below is my code

 

If(!IsBlank(LookUp(ReferencenceList,User().FullName=Proper(Title),IsSupervisor="Yes")), true , false )

 

Let Me Know if you have any suggestions and Thanks!

 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @Maxwell123 

    Please try this code in the Visible property of the control. My assumption will be that the IsSupervisor field is a text type.

    !IsBlank(LookUp(ReferencenceList,User().Email='Employee Email',IsSupervisor="Yes"))

     

    If IsSupervisor field is a Yes/No type then do this instead.

    !IsBlank(LookUp(ReferencenceList,User().Email='Employee Email',IsSupervisor=true))

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Maxwell123 Profile Picture
    93 on at

    Hello, I appreciate your quick response!

     

    Yes the field is a text type sorry for not specifying that initially, I plugged that code in and theres no errors however in my testing It is visible no matter what text I put in the column. Any suggestions?

  • Maxwell123 Profile Picture
    93 on at

    I was way overthinking this here is the code I got to work. And PS I know I spelled "Reference" incredibly wrong! 😂

     

    LookUp(ReferencenceList,User().Email=EmployeeEmail,IsSupervisor="Yes")
     
    Thanks so much for getting me on the right path!
     
     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard