AnsweredAssumed Answered

Manager of user

Question asked by ismail1 on Dec 24, 2013
Latest reply on Jan 6, 2014 by jbarrez
does IdentityService hava a method for getting the manager of a user? or should we develop a bean which uses ldap api and connects the ldap independently to get the manager?

I could get the users email as:

  public String getMailForUser(String userId) {
       User user = getIdentityService().createUserQuery().userId(userId).singleResult();
       return user.getEmail();