Share all details related to your problem, including any error messages you may have received.
Hi Team,
I have to written one rule in which I can assign application to user but I don’t want to pass attribute values through attribute request, I want that it should called provisioning policy of that application.
If it possible, can you please share some sample.
This will result in CREATE provisioning transaction whenever identity which got this IT Role does not have at least account with not null status attribute. And than in CREATE provisioning policy you can set all neccesary attributes.
@kjakubiak, Thank you for your reply.
I have below rule in which two attributes I want to passthrough via AttributeRequest as mentioned in code and other Attributes I want through provisioning policy.
If this is a possible scenario then please guide me
type or paste code here
import sailpoint.object.ProvisioningPlan;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
import sailpoint.object.Identity;
import java.util.List;
import java.util.ArrayList;
ProvisioningPlan plan = new ProvisioningPlan();
String identityName="NQABC123";
Identity identityObject = context.getObjectByName(Identity.class, identityName);
log.debug("Employee... Create plan.");
List accreqs = new ArrayList();
//create AD account
AccountRequest acctReq = new AccountRequest();
acctReq.setOperation(AccountRequest.Operation.Create);
acctReq.setApplication("AD");
acctReq.add(new AttributeRequest("sAMAccountName",identityName));
acctReq.add(new AttributeRequest("*password*","newP@$$word"));
accreqs.add(acctReq);
plan.setAccountRequests(accreqs);
plan.setIdentity(identityObject);
System.out.println("Plan = " + plan.toXml());
return plan;
You can also try using the dummy entitlement , When you trying add the dummy entailment either through role / access request page . automatically system will use provisioning policy and will try to populate all the required value and ppulate the attribute request and then in before provisioning rule you can remove added dummy entitlement .