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 / Is it possible to user...
Power Apps
Unanswered

Is it possible to user User() on a guest account?

(0) ShareShare
ReportReport
Posted on by 10

I have external users for my PowerApps. 

 

let's call them

 

test1@gmail.com

test2@gmail.com

 

 I'm planning to use the e-mail to identify the role of a user (for instance there's an approver 1 and 2 field on an SP list called "Eval List" and I check  if the email is on the approver field.

 

Is it possible for me to get the e-mail with the User().email function? Sometimes it's a hit or miss. 

If I have 2 browsers open (the chrome profile for each one are the gmail accounts), sometimes the User().email that appears on test1 is test2? I'm having trouble grasping the permissions side of things. 

 

I've attached screenshots to show a sample powerapp i made that shows the same user().email on 2 diff profiles

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, User().Email returns the email address of the currently-logged-in user. If the user has got into your app successfully, then the app has:

    1. Been shared with them
    2. The user is part of your tenant's Azure Active Directory

    These two points must be true, even if the user is external to the company's domain.

     

    Keep in mind, browsers like to store login information from the past. This is especially true for Microsoft services where the user chose "Keep Me Logged In" when they last entered their password. So, make sure to check that the user you think is logged in is the one who is actually logged in. A label with User().Fullname can help you sort that out.

     

    Hope that helps,

    Bryan

  • alexesprtu29 Profile Picture
    10 on at

    Sorry, what do you mean logged in? In make.powerapps.com?

     

    I'm printing User().email on a label, and for the browser with the test1 profile it prints test1@gmail.com, but for test2 profile, it still prints out the test1 email. 

  • BCLS776 Profile Picture
    8,994 Moderator on at

    @alexesprtu29 wrote:

    Sorry, what do you mean logged in? In make.powerapps.com?

     

    I'm printing User().email on a label, and for the browser with the test1 profile it prints test1@gmail.com, but for test2 profile, it still prints out the test1 email. 


    Yes, "logged in" is referring to the Microsoft 365 (Office 365) account that is currently signed in and using the service (apps.powerapps.com for a shared app, make.powerapps.com while you are developing/testing). Your test indicates test1@gmail.com is the account you are currently signed into.

     

    Does your other test account of test2@gmail.com have a Power Apps licence and is included on the tenant's Azure Active Directory? If so, share the app to that account, then sign out of the first one and sign into this one to test under its credentials.

     

    Bryan

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard