Pull additional information from LDAP in alert

I would like to see if it is possible to pull in additional LDAP information in an alert?

In our environment we use the employee ID number in place of the username. I would like to be able to, if possible, run an LDAP query at the time of alert execution to retrieve additional information, like the display name and put this in the alert message rather than the employee number.