Person.removeRoleAssignmentData()
The method removes all role assignment data of the person for an array of assigned Roles. It does not directly change data in the data source, but removes from memory the data inside the person object.
- Availability
-
IBM® Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
person.removeRoleAssignmentData(String [] roleAssignedDNs)
- Arguments
-
- roleAssignedDNs
- An array of distinguished names of the assigned role.
- Description
- This method is defined on the Person object. It removes all role assignment data of the person for an array of assigned roles.
- Usage
-
//The script is used in a workflow, in which Entity is a person object. var person = Entity.get(); var roleDNs = person.getProperty("erroles"); if(roleDNs.length == 0) { Enrole.log("script", person.name + " does not have any roles"); return; } //remove the role assignment attribute. person.removeRoleAssignmentData(roleDNs);