RoleAssignmentAttribute.getRoleDN

The method returns the distinguished name of the role that defines the assignment attributes.

Availability

IBM® Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
RoleAssignmentAttribute.getRoleDN()
Arguments
None
Returns
The distinguished name of the role that defines the assignment attributes.
Description
Returns the distinguished name of the role that defines the assignment attributes.
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 the distinguished name of the role that defines 
    // assignment attributes.
    for (var i=0; i < attributeList.length; i++) {
        var roleAtr = attributeList[i];
        Enrole.log("script","define role DN-----: "+ roleAtr.getRoleDN());
    }