Person.getAllAssignmentAttributes()

The method returns an array of the RoleAssignmentAttribute objects defined for all of authorized roles for this person. The authorized roles consist of both the direct roles for this person and also all the parent roles of the direct roles.

Availability
IBM Security Identity Manager 7.0

Synopsis
person.getAllAssignmentAttributes()

Arguments
None

Description
This method is defined on the Person object. It returns an array of the RoleAssignmentAttribute objects defined in all of authorized roles for this person. The authorized roles consist of both the direct roles for this person and also all the parent roles of the direct roles. The method returns an empty array if no assignment attribute exists. RoleAssignmentAttribute objects contains role assignment attribute name, role name, and role DN.

Usage
    //The script is used in a workflow, in which Entity is a person object. var person = Entity.get(); //get assignment attributes of the person var attributeList = person.getAllAssignmentAttributes(); if (attributeList.length == 0) { Enrole.log("script", "No assignment attribute for this role: " + role.name); return; }// print out the role assignment attribute name. for (var i=0; i < attributeList.length; i++) { var roleAtr = attributeList[i]; Enrole.log("script","attribute name-----: "+ roleAtr.getName()); }

Parent topic: Person