By: Neemesh Patel user 10 Oct 2016 at 6:10 a.m. CDT

1 Response
Neemesh Patel gravatar
Hi, When you log into Gluu you are greeted with a brief pop up bubble in the upper right corner of the screen saying "Welcome, <username>!" (where "<username>" is the username of the profile). If you click on the profile icon, you can also see the username here (screenshot of the two sections I am referring to here [https://postimg.org/image/b3fxp4uuz/](https://postimg.org/image/b3fxp4uuz/)). I'm looking to change these so that it uses either the display name or the email instead. I have changed the Gluu username login from uid to mail so I would prefer to display the email here or the display name instead of the UID to keep it more consistent (the UID is sometimes an non-friendly name like 54AED2@company.com so it's static as last names and emails can change). I believe I need to change line 36 in /opt/tomcat/webapps/identity/WEB-INF/incl/layout/topmenu.xhtml for the main pop up (not sure where the code for the initial pop up lies, if someone could shed light on that also, I would be grateful), but am unsure of the credentials object to replace it with for email and display name (I couldn't see where the credentials object is constructed). Could anyone at Gluu shed any light on this for me and help me change this from a username to an email or display name? ``` <p style="font-size: 14px; color: whitesmoke;"> #{credentials.username} </p> ``` Thanks as always for your time

By Shekhar L. staff 19 Oct 2016 at 11:55 a.m. CDT

Shekhar L. gravatar
HI Neemesh, For Welcome message, you have to set gluuCustomMessage entry in ldap with key 'welcometitle'. And to show email address in place of username you can set email-address in session and display it on suitable location as per requirement. Thanks, Shekhar L