I am asked this all the time:
How do I grab a user’s display name or email address to log or use in an email, instead of the default i:firstname.lastname@example.org?
The key is to insert the variable using the “Advanced Lookup” insert function, rather than selecting it from the list of variables in the right-hand pane.
Below, I want to insert a user’s display name into a “Log in history” action between the parentheses after “project leader”. Click “Advanced Lookup”:
Then, click the little orange fx button next to the “field” dropdown control and select Display Name, Email Address, Login Name or User Id Number:
The variable is then inserted, but it isn’t immediately clear that the Display Name is being used instead of the login name:
I’m sure this will be improved eventually to indicate which form of the variable is selected, but at least the user’s name in the history log looks better than i:email@example.com!