function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sivapriya RajeshwerSivapriya Rajeshwer 

Displaying current user's firstname and lastname in community portal custom HTML header

I have gotten a requirement to fetch the current user's firstname and lastname in the community portal custom HTML header. I was able to pull user's email using UserContext.userName. Anyone has any suggestions on how to pull the fistname and lastname?

Any help would be appreciated.
Thanks!
@Karanraj@Karanraj
Try 
UserContext.FirstName
UserContext.LastName
Sivapriya RajeshwerSivapriya Rajeshwer
I tried it already. It returns the value "undefined".
Sivapriya RajeshwerSivapriya Rajeshwer
I read some blogs regarding AJAX toolkit to query salesforce database using sforce.connection.query. could anyone help me with how to use this in html file to get firstname and lastname of the current user?

Thanks.