RoleAssignmentObject
The RoleAssignmentObject
class is a DataObject class for role assignment
data.
Overview
The RoleAssignmentObject
class is available only for IBM Verify Identity Governance - Container.
This class holds the assignment data that are associated with the defined role and the assigned role. The defined role is the role that holds a list of assignment attributes. The assigned role is the role to which the person is assigned.
Note: Note that creating
RoleAssignmentObject
using the constructor
RoleAssignmentObject(String assignedRoleDN, String definedRoleDN) works as only a data object, and
does not contain any data other than the in-memory DN object of assignedRoleDN and definedRoleDN.
For example, if you call getPropertyNames() immediately after creating the RoleAssignmentObject from
the RoleAssignmentObject(String assignedRoleDN, String definedRoleDN) constructor, then it returns
an empty string array.Details
- Availability
- IBM Verify Identity Governance - Container
- Provided by
- com.ibm.itim.script.extensions.model.RAObjectModelExtension
- Constructors
-
- new RoleAssignmentObject(RoleAssignmentObject assignmentObject)
- Arguments
- new RoleAssignmentObject(String assignedRoleDN, String definedRoleDN)
- Arguments
- Methods
-
- getPersonDN()
- Returns the distinguished name string for the person which has the role.
- addProperty()
- Adds the values for specified assignment attribute.
- getAssignedRoleDN()
- Returns the distinguished name string for the role to which the person is assigned.
- getDefinedRoleDN()
- Returns the distinguished name string for the role in which the assignment attribute is defined.
- getChanges()
- Returns the changes made to this RoleAssignmentObject.
- getProperty()
- Returns the values of the property specified by the assignment attribute name.
- getPropertyNames()
- Returns a list of role assignment attribute names.
- removeProperty()
- Removes the values for the specified assignment attribute name.
- setProperty()
- Sets the values for a specified assignment attribute.
- Description
- RoleAssignmentObject contains the role assignment data, including the assigned role DN, the defined role DN and attribute values.
RoleAssignmentObject.getPersonDN()
The RoleAssignmentObject.getPersonDN()
method returns the distinguished name
string for the person which has the role.
- Availability
- IBM Security Verify Governance - IBM Verify Identity Governance - Container version 10.0.2.
- Synopsis
roleAssignmentObject.getPersonDN()
- Arguments
- None
- Returns
- The distinguished name string for the role to which a person is assigned.
- Description
- This method returns the distinguished name string for the role to which a person is assigned.
- Usage
-
// Find all role assignments for a given role DN // and print out the person that has this role var assignedRoleDN = "globalid=111"; var raArray = (new RoleAssignmentSearch()).searchByFilter("",assignedRoleDN,""); for (var i=0; i<raArray.length; i++) { var raObject = raArray[i]; Enrole.log("script","Person DN: "+raObject.getPersonDN()); }