So, before upgrading to 5.1 and the SSO, this used to work:
var ldapUser = Server.getCurrentLdapUser();
var adminEmail = ldapUser.emailAddress;
System.log("Admin email: " + adminEmail);
It no longer works. I can see that the ldapUser variable is being filled out. However, it looks like it cannot retrieve the email address.
I suspect this has to do with the SSO authentication (I am using SSO rather than LDAP now)
I looked to see if there was a SSO-related function in the API, but if there is I missed it.
anyone have any ideas how to get the current users email address with 5.1?
Thanks
Jason