Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: Retrieve List of users from DefaultDom using API

$
0
0

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());

            }

         }


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>