ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
DirectoryManagerServiceClient dirClient = new DirectoryManagerServiceClient(myFactory);
PrincipalSearchFilter psf = new PrincipalSearchFilter();
psf.setSpecificDomainName("DefaultDom") ;
psf.setPrincipalType(UMConstants.PrincipalTypes.PRINCIPALTYPE_USER);
psf.setRetrieveOnlyActive();
List<PrincipalReference> principalList = dirClient.findPrincipals(psf);
Iterator pit = principalList.iterator();
String oid = "";
User testUser = null;
while (pit.hasNext()){
testUser = (User)(pit.next());
System.out.println(testUser.getCommonName());
}
}