Deleting a user
If the native LDAP entry is a member of another Verify Identity Access domain, or another application has placed child entries beneath it, the removal of the native LDAP entry fails. An exception is thrown from the API but the Verify Identity Access component is still removed.
The following example deletes the Verify Identity Access user testuser from
the Default Verify Identity Access domain
and removes the native LDAP entry. Last parameter of deleteUser() is
set to true.
String userId = “testuser”;
try {
rgyRegistry.deleteUser(“Default”, userId, true);
}
catch (WarningNativeEntityInUseRgyException e) {
System.out.println(“Warning: unable to remove native LDAP entry”);
// Ignore
}
catch (RgyException e) {
e.printStackTrace();
System.exit(1);
}