Retreive User's/Group's Csutom Infos from LDAP

cancel
Showing results for 
Search instead for 
Did you mean: 
makram_baaziz
Partner

Retreive User's/Group's Csutom Infos from LDAP

Jump to solution

Hello,

We configured APS to be synced with LDAP (Active Directory).
We want to get some extra infos from LDAP like the manager, phone number, address... of a specific user.

We planned to create a spring bean (@Component) with couple of functions that retrun a serializable User (Custom class) object which contains all required infos of the user:

@Component
pulic class LDAPUserService {
...

public User getUserByEmail(String email) {
User user = new User();
//Connect to LDAP
...

//Get user infos using some LDAP search query
...

//Get the result and prepare the user instance

return user;
}

...
}


We want to know if this is the best way to ge such infos

Thanks,

Makram

1 Solution

Accepted Solutions
rallegre
Alfresco Employee

Re: Retreive User's/Group's Csutom Infos from LDAP

Jump to solution

Hi,

An easier way to do this without having to modify core product areas would be to implement a service task, that gets the external ID for a user by the user ID. This external ID could then be used to query LDAP in that service task and retrieve the properties and you could set those as process variables then... 

Raphael

View solution in original post

2 Replies
rallegre
Alfresco Employee

Re: Retreive User's/Group's Csutom Infos from LDAP

Jump to solution

Hi,

An easier way to do this without having to modify core product areas would be to implement a service task, that gets the external ID for a user by the user ID. This external ID could then be used to query LDAP in that service task and retrieve the properties and you could set those as process variables then... 

Raphael

makram_baaziz
Partner

Re: Retreive User's/Group's Csutom Infos from LDAP

Jump to solution

Thanks Raphael