My webMethods Server 10.1 | My webMethods Server Webhelp | Document Conventions | System Administrator Functions | Working with the Common Directory Services API | CDS Code Examples
 
CDS Code Examples
 
List All Roles
Lookup a User by Name and Fetch all Attribute
Authenticate User
Create Static Role and Add User as a Member
List All Roles
IDirectorySession session =
DirectorySystemFactory.getDirectorySystem().createSession();
List roles = session.listRoles();
for (IDirectoryRole role: roles) {
String roleID = role.getID();
String roleName = role.getName();
String roleDN = role.getDN();
}