AnsweredAssumed Answered

Get Person Email Address and Send Mail

Question asked by nyronian on Jun 2, 2008
Latest reply on Aug 19, 2008 by ivo.costa
I would like to get the logged-in-users email address from Alfresco in Java Code (A new Dialog I am creating) and I cannot find where the information is stored.  Can anyone point me in the right direction?

The below code gives me the username and the user node but I can't find the email.
String userName = serviceRegistry.getAuthenticationService().getCurrentUserName();
NodeRef user = serviceRegistry.getPersonService().getPerson(userName);