RoleAssignmentObject.getProperty()

The method returns the values of the assignment attribute specified by the given name.

Availability

IBM® Security Identity Manager 6.x

IBM Security Identity Manager 7.0.

Synopsis
RoleAssignmentObject.getProperty(name)
Arguments
name
String representing the name of the assignment attribute to return.
Returns
The array of strings that represents the values for an assignment attribute. If the specified assignment attribute does not exist, an empty array is returned.
Description
This method returns the values of the assignment attribute specified by the given name. If the specified assignment attribute does not exist, an empty array is returned.
Usage
// create assignment object with assigned role dn and defined role dn.
var assignmentObj = new RoleAssignmentObject("eruid=1111,dc=com", 
    "eruid=2222,dc=com");
assignmentObj.addProperty("attr1", ["attr1val1", "attr1val2"]);

// get assignment attribute values for attr1.
var attrValues = assignmentObj.getProperty("attr1");
var attrValuesStr = "";
for (var j=0; j<attrValues.length; j++) {
  attrValuesStr += attrValues[j] + ", ";
Enrole.log("script", "The values for attr1:" + attrValuesStr);