Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Liquid content user-fullname gives John Doe for everybody.

(0) ShareShare
ReportReport
Posted on by 6

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 %}
  • Fubar Profile Picture
    8,023 Super User 2025 Season 2 on at
    Liquid content user-fullname gives John Doe for everybody.
    @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).
  • dgray304 Profile Picture
    156 on at
    Liquid content user-fullname gives John Doe for everybody.
    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,023 Super User 2025 Season 2 on at
    Re: Liquid content user-fullname gives John Doe for everybody.

    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.

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Liquid content user-fullname gives John Doe for everybody.

    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

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics