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 Pages / Liquid content user-fu...
Power Pages
Unanswered

Liquid content user-fullname gives John Doe for everybody.

(0) ShareShare
ReportReport
Posted on by 8

Hi everybody. I'm creating a website and I try to use the liquid content on powerpage. I made a script that should say "Hi user.fullname" . Fullname should be different for everybody. It worked but since a few week, it write "Hi John Doe" for everybody, and of course we're not John Doe. Could somebody help me to see where I can find the variable user.fullname and so understand the problem ? 

Thank's a lot, and sorry for my english 

Brandon95_0-1713976320259.png

 

 

Here's the part of the code  :


 

       {% if user.logged_in %}
          Hi {{ user.fullname }} <br /><br />
        {% else %}
          Welcome, Guest!<br /><br />
        {% endif %}
Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    not sure if this is related, but this doesn't look right {% if user.logged_in %}

    all you need if

    {% if user %}

     

    Also, do you mean in the Portal Studio Design or the website itself?

    in the Studio Design this is expected, but it's not your real website, it's just a preview 

    OliverRodrigues_0-1714032284850.png

     

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    As per Oliver it is usually just 

    {%if user %}

    The Liquid 'user' object does not exist if not logged in (you may actually get a Liquid error if accessing one of its properties for someone that is not logged in).

     

    Are you actually on the Web Page (e.g. Previewing it) or just in the Site Editor? in the site editor it will always say John Doe.

  • dgray304 Profile Picture
    217 on at
    Did we ever get this resolved?
     
    I am having same issue.  I get 'John Doe' for user.fullname in Power Pages Design Studio (PPDS) and in the preview.
     
    It also shows the guid ({{user.id}})  The guid it shows does not exist in the contact table.
     
    Is this a default value for an 'Anonymous user'?
     
    Thanks,
    Doug
  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at
    @dgray304 the Designer will always show John Doe (and will not be a valid guid), when logged into the Website it should show the correct name.
     
    The 'user' object only exists when logged into the website (there is no anonymous, which is why it should be wrapped in a {% if user %}  ) - if you are just previewing make sure you are also logged into the Website (e.g. in private mode you will be logged into AD/Entra, but not logged into the website itself until you login to the website).

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard