Person.getRemovedRoles(boolean convertReplaceToAddDelete)
The method returns an array of removed static roles for the
Person
.
- Availability
-
IBM® Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
person.getRemovedRoles(boolean convertReplaceToAddDelete)
- Description
-
This method defined on the person object returns an array of static roles from which the person was removed. The return type is an array of
DirectoryObjects
.Depending on how the person modification is triggered, the role changes get stored as
REPLACE
operation orADD/DELETE
operation.When the method is invoked with a true parameter, the
REPLACE
operation is evaluated asADD/DELETE
and the method will return only the removed roles.When the method is invoked with a false parameter, if role changes are stored asREPLACE
operation, the method will return the complete set of existing roles. This return includes the existing roles, which are not deleted.Note: The person object is often a runtime object in memory, and these static roles were not removed from the directory. - Usage
var removedRoles = per.getRemovedRoles(true);