Manager of user
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2013 08:34 AM
Hi,
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:
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(); }
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2013 08:55 AM
sorry, that method only works for default demo users. When you integrate active directory ldap server as stated in guide, user.getEmail() returns null…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2014 04:48 AM
That is because the LDAP impl will not fetch the email from ldap and populate the pojo.
Should be easily fixable by extending the ldap code.
Should be easily fixable by extending the ldap code.
