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 / Getting wrong logged U...
Power Apps
Unanswered

Getting wrong logged User().Email

(0) ShareShare
ReportReport
Posted on by 50

We have a CANVAS custom page running in a Model-Driven app, that needs to get who is the logged user.

 

We have an issue when different users use the same computer. Besides the Model-driven logged user is correct, the custom page is getting User().Email  from the previous logged user.

 

How can I reset the previous logged user and get the actual one? Is possible to get the model-driven logged user?

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @pbernardes ,

     

    I'm assuming the different users have selected the "Stay logged in" option, which may cause this. At the top right of the screen you can see the currently logged in user:

    BCBuizer_0-1686515057770.png

     Can you confirm if this user matches the return of User()? If it doesn't please try logging out any other users.

  • pbernardes Profile Picture
    50 on at

    Hi @BCBuizer!

     

    The users doesn't match. The user showed in the model-driven app is the right one.

     

    Yes, if all users logout or just cleanup their cache it will work but, in the real life, users will leave the app without logout.

     

    If the Powerapps cannot identify the real currently logged user, it looks to me an important security issue.

  • Linn Zaw Win Profile Picture
    2,996 on at

    @pbernardes 

    I guess only MS Support Engineers can look through what is going on based on the session ID.

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @pbernardes ,

     

    This seems to be more of an issue caused by the shared use of a machine than it is a security issue in Power Apps. 

     

    Perhaps the option to automatically sign out the user upon exiting the app may help and close this gap: Exit function in Power Apps - Power Platform | Microsoft Learn

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard