Announcements
{{user.fullname}}
only above function work for me so far; can I access other user's attributes in portal??
I defined a field named departments in contact, the portal will display the content based on this users department
hi @Anonymous,
Yes you can access other attributes of the user the same way as from any other entity (see entity liquid object docs). All you need to know is logic name of the field. For example: field with logic name firstname can be accessed like this user.firstname; field with logic name dwc_somedata can be accessed like this - user.dwc_somedata.
Please be aware that lookup field will be returned as Entity Reference object and optionsets will be returned as OptionSet object.
Thanks for reply
but when I try the code
Hi @Anonymous,
You don't need to retrieve user as a contact in a separate request. User object is a special one - it already contains attributes from contact record and additional details like roles (check out this docs for more info). You should be able to retrieve data from your custom field using just user.cr7cc_departments call.
Hi,
I have the same problem but in my case I am looking for the email id of the user who currently logged in.
When tried with user.internalemailaddress the result is empty. Appreciate your reply.
Thanks
Hi @Pbv ,
Portal users are contacts in CRM. So to get the contact email address you need to use emailaddress1 field.
@OOlashyn- Excellent that works perfectly.
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 Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
rezarizvii 61
oliver.rodrigues 40 Most Valuable Professional
DP_Prabh 26