Announcements
No record found.
Hi,
Was just wondering if how can I get the username of the user logged in into the portal? Also, is user.id equal to Contact.Id?
Thank you,
rome
*This post is locked for comments
Currently, I need to get the domainname of the current user.
Refer to Liquid customization, user object - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-objects#userTo retrieve any additional parameters (as well of connected entities) you can use fetchxml tag.Yes, user in the portal is contact entity in CRM. (see Portal Contact form)
Hi rome,
See below example
{% if user %}
Hello, {{ user.fullname }}!
{% else %}
Hello, anonymous user!
{% endif %}
Thanks
Justin Jose
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Varsha deshpande 5
NeerajPawar 2
jlattimer 2