Role.getChildRoles()

The method returns all the immediate member roles.

Availability

IBM® Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
Role.getChildRoles()
Arguments
None
Description
This method is defined on the Role object and returns an array of roles. The array contains the immediate member roles, that is, child roles of the role. The method returns an empty array if no child role exists.
Usage
var role = new Role(roleDN);
//get child roles
var roleList = role.getChildRoles();
if (roleList.length == 0) {
    Enrole.log("script", "There are no child roles of role: " + role.name);
    return;
}

// print out role names.
for (var i=0; i < roleList.length; i++) {
    var r = roleList[i];
    Enrole.log("script","role name: "+ r.name);
}