Person.removeRole()

The method removes the person from the specified role.

Availability

IBM® Tivoli® Identity Manager 5.x

IBM Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
person.removeRole(role)
Arguments
role
Role object that represents the role from which the person is removed.
Description
Removes the person from the role.
Note: This operation removes only the role from the Person object in run time, and it does not remove the role from the directory.
Usage
//Remove the first role in the Person object
var roles = person.getRoles();
if (roles.length > 0) {
   person.removeRole(roles[0]);
}