My webMethods Server 10.11 | My webMethods Server Webhelp | Administering My webMethods Server | System Administrator Functions | 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();