Friday, April 9, 2021

Customization Rule

It's initially designed for non-rule based connectors to add Privileged flag to accounts. It can be used for customization of account attributes as well.

# Build Map equivalent for non-delimited file or JDBC connectors.
# It will runs during Account Aggregations.
e.g    :   
# Manipulating information in the incoming resource object (in place of Build Map rule)
# Determining what accounts are Privileged or System accounts

e.g :    1

import sailpoint.api.*;
import sailpoint.object.*;

String status = object.getAttribute("Status");

// fetching only Active accounts
if(status != null && !status.equalIgnoreCase(false)){
object.put("IIQDisabled","Boolean.FALSE");
object.put("Status","Active");
}

// fetching Inactive accounts
else {
object.put("IIQDisabled","Boolean.TRUE");
object.put("Status","Inactive");
}

return (ResourceObject)object;

No comments:

Post a Comment

Fetch Members from Workgroup

  import java.util.ArrayList;   import java.util.Iterator;   import java.util.List;   import sailpoint.api.ObjectUtil;   import sailpoint.ob...