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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / User().Email on comman...
Power Apps
Answered

User().Email on command power button using powerfx

(1) ShareShare
ReportReport
Posted on by 628

Hi All,

 

I put

 

User().Email = "myorgemail"

 

into the visibility of a command bar button, but I only ever see the button appear in the editor. Am I using this function incorrectly on the command button?

 

Let me know,

Thanks

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    Try using with Lower function

     

    Lower(User().Email) = Lower("myorgemail")

     

  • dlprentice Profile Picture
    628 on at

    Unfortunately, this is not working. I'm a bit confused, even when looking at the User() record in the component library I get a blank record, but my canvas apps / page apps work fine. @NandiniBhagya20 perhaps it's my component library? Some quick searches don't really show this working well for anyone at the moment...

  • Tony_Suslovich Profile Picture
    4 on at
    @dlprentice, I know it's an old post but did you ever get it working? I'm facing the same issue now and I have a feeling User() is just not working with command bar though it doesn't give you any errors when you reference it.
  • Verified answer
    dlprentice Profile Picture
    628 on at
    @Tony_Suslovich User() is still an unsupported function per the documentation: https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/commanding-use-powerfx

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard