CDS Code Examples
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();
}