Skip to main content

Notifications

Community site session details

Community site session details

Session Id : JlgM4QubXmii8MH/yQEKXz
Power Pages - Power Apps Portals
Answered

Liquid tags: which entity does "user" reference?

Like (0) ShareShare
ReportReport
Posted on 23 Apr 2021 21:30:39 by 126

Can't find this anywhere in the documentation, where are the user settings stored? In Liquid tags you can do:

 

 

{{ user.fullname }}

 

 

and it will tell you the full name of the user that is currently logged in.

 

I want to be able to get more user metadata such as the Company Name that the user is associated with in the Contacts entity. So I looked at the contact table and found this:

OkayGoogle_0-1619213345940.png

 

 Then I tried using:

 

{{ user.parentcustomerid }}

 

 

but it gave me an error saying "Liquid error: contact With Id = 195c4da7-32ee-4179-a58e-3c8c5cc5aa93 Does Not Exist".

 

How do I go about getting the Company Name of the currently authenticated user in the Power Apps Portal?

  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on 24 Apr 2021 at 19:58:39
    Re: Liquid tags: which entity does "user" reference?

    Hi @OkayGoogle,

    User liquid tag is pointing to the contact record of the current portal user (see more details in official doc here). user.parentcustomerid will return an entity reference (lookup) object (see here) so to get the name of the account you will need to use user.parentcustomerid.name

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started
Loading complete