Avatar

Correct answer by
Not applicable

Hi!

I know you mentioned that you looked into this without success, but it should really work.

First make a GroupMemebershipSearchFilter, setting the GroupOid to be ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter which returns a List<User>, as follows:


DirectoryManagerServiceClient directoryManager = new DirectoryManagerServiceClient(serviceConnection.getFactory());

List<User> userList = new ArrayList<User>();

try
{
userList = directoryManager.findGroupMembers(searchFilter);
}
catch (Exception e)
{

    // Error stuffs
}

return userList;

View solution in original post