How to create provisioning plan in Sailpoint
//Provide application name, attributes, operation
ProvisioningPlan plan = new ProvisioningPlan();
List requests = new ArrayList();
List attributes = new ArrayList();
/*Identity identity = context.getObjectById(Identity.class,
formModel.get("identity"));*/
AccountRequest account = new AccountRequest();
account.setApplication("HR_Staging");
account.setOperation(AccountRequest.Operation.Create);
attributes.add(new AttributeRequest("FIRST_NAME", identity
.getAttribute("firstname")));
attributes.add(new AttributeRequest("LAST_NAME", identity
.getAttribute("lastname")));
account.setAttributeRequests(attributes);
requests.add(account);
//plan.setIdentity(identity);
plan.setAccountRequests(requests);
System.out.println("Plan xml : " + plan.toXml());
Comments
Post a Comment