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 / Guest user lookup usin...
Power Apps
Answered

Guest user lookup using User() fails

(0) ShareShare
ReportReport
Posted on by 127

When a record is created, I need to pull data from a custom field in the User table and store in the record. This code works for internal users but won't return for guest user.

 

LookUp(Users, User().FullName = 'Full Name', 'Work Site') // get work site name of current logged in user

 

I notice in the Users list, guest account First Name field stores a '#' and Last Name is the full name of the guest. Could this be the reason the lookup fails? 

Categories:
I have the same question (0)
  • james1994 Profile Picture
    231 Moderator on at

    Hey @tedqn77,

     

    Assuming the Full Name in that User List concatenates the First and Last Name like so ("# FirstName LastName"), then this would seem to be why the lookup is not returning anything for your Guest User. You could add a second condition in the lookup which includes the "#" to account for this.

  • tedqn77 Profile Picture
    127 on at

    I tried that and it didnt work.

    LookUp(Users, "# " &  User().FullName = 'Full Name', 'Work Site') 

  • james1994 Profile Picture
    231 Moderator on at

    Are you able to provide an example of what the list containing a internal user and guest user looks like?

  • Verified answer
    tedqn77 Profile Picture
    127 on at

    I was able to get it to work by changing it to 

    LookUp(Users, User().Email = 'Primary Email', 'Work Site'). Each user has unique primary email address.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard