Role.getAscendantRoles()
This method returns all the ascendant roles, transitively. Ascendant roles are ancestors, that is, parent roles, grandparent roles, and more remote ancestor roles.
- Availability
-
IBM® Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
Role.getAnscendantRoles()
- Arguments
- None
- Description
- This method is defined on the Role object and returns an array of roles. The array contains all ancestor roles of the role, transitively. The method returns an empty array if no ascendant role exists.
- Usage
-
var role = new Role(roleDN); //get ascendant roles var roleList = role.getAscendantRoles(); if (roleList.length == 0) { Enrole.log("script", "There are no ascendant 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); }