web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How to get/display Current logged-in User name in Dynamics CRM Portal

Syed Ibrahim Profile Picture Syed Ibrahim 6,257

How to get/display Current logged-in User name in CRM Portal



This is generic requirement to say welcome message to the logged-in user on any portal.If portal user is logged-in user it will show their name and if not will show as guest user.


{% if user %}
  Hello, {{ user.lastname }}!
{% else %}

Welcome Guest{{user.anonymous}}!
{% endif %}




This was originally posted here.

Comments

*This post is locked for comments