RoleAssignmentAttribute.getRoleName()

The method returns the name of the role that has the assignment attribute defined.

Availability

IBM® Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
RoleAssignmentAttribute.getRoleName()
Arguments
None
Returns
The name of the role that has the assignment attribute defined.
Description
Returns the name of the role that has the assignment attribute defined.
Usage
var role = new Role(roleDN);
    //get assignment attributes of the role
    var attributeList = role.getAllAssignmentAttributes();
    if (attributeList.length == 0) {
        Enrole.log("script", "No assignment attribute for this role: " 
            + role.name);
        return;
    }

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