webMethods and Intelligent Business Operations 10.2 | Running Business Processes and Composite Applications | Administering My webMethods Server | Working with the Common Directory Services API | CDS Code Examples | Lookup a User by Name and Fetch all Attribute
 
Lookup a User by Name and Fetch all Attribute
IDirectorySession session =
DirectorySystemFactory.getDirectorySystem().createSession();
IDirectoryUser user = (IDirectoryUser) session.lookupPrincipalByName
   ("user1", IDirectoryPrincipal.TYPE_USER);
Map attributes = user.getAllAttributes();

Copyright © 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release