Skip to Content

The usermanagement API is actually quite robust and useful. If you combine it with the SMTP class in my previous blog entry you can send it out to the end user from within EP automatically. It is far more flexible and useful than doing the LDAP lookups yourself — and if your LDAP changes as many times as ours have you may have to recode your queries. Not so with usermanagment.

Here’s some code:

... get the request object if you haven't already ...
IUser user = (IUser) request.getUser().getUser();
     contactLastName = user.getLastName();
     contactFirstName = user.getFirstName();
     lastRevisedName = user.getLastName()+","+
     if (user.getTelephone() != null)
          contactPhone = user.getTelephone()[0];
     if (user.getEmail() != null)
          contactEmail = user.getEmail()[0];
city = user.getCity();
     country = user.getCountry();
     address = user.getStreetAddress();
To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply