Deleting a group
The
following sample code displays the steps to delete the Verify Identity Access group testgroup from
the Verify Identity Access domain Default and
remove the native LDAP entry.
The
last parameter of deleteGroup() is set to true.
If the native LDAP entry is also a member of another Verify Identity Access domain, or another application places child entries, the removal of the native LDAP entry fails. Despite this error, the Verify Identity Access component is still removed.
String groupId = “testgroup”;
try {
rgyRegistry.deleteGroup(“Default”, groupId, true);
}
catch (WarningNativeEntityInUseRgyException e) {
System.out.println(“Warning: unable to remove native LDAP entry”);
// Ignore
}
catch (RgyException e) {
e.printStackTrace();
System.exit(1);
}