Get user attribute during authenticated user session via nam jsp page

Hi guys,

do you know how can I get some user attribute (like email, first name, last name) from an authenticated user session? I'm following this customization "https://community.microfocus.com/cyberres/netiq-access-management/accessmanager/f/nam_discussions/352988/customize-totp-account-gui-on-otp-authenticators" and I need to get the email user attribute to use it in QR Code initialization.

Thanks!