I would like to test a jdbc provisioning rule logic from the IIQ console. I was trying to pass the plan in as an xml object. Is this possible? Can anyone supply me with a working example?
Below code is non working snippets intended for demo purposes.
IIQ Console prompt> rule myProvisioniningRule “c:\Plan.xml”
Hello World
exit
MyProvioningRule.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule created="" id="language="beanshell" modified="1682545276046" name=" myProvisioniningRule " type="JDBCProvision">
<Inputs>
….. THE STANDARD INPUTS for a connector Provision Rule
</Inputs>
<Source>
if(plan != null) {
List accounts = plan.getAccountRequests();
for (AccountRequest accReq: accounts) {
if (accReq != null && AccountRequest.Operation.Create.equals(accReq.getOperation())) {
System.out.println( “Hello World”);
}
}
}
</Source>
Plan.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE ProvisioningPlan PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<plan>
<AccountRequest application="MB_DELIMITED_APP" nativeIdentity="ABERGERON" op="Modify">
<AttributeRequest name="Create" op="Set" value="true"/>
<ProvisioningResult status="committed">
<Warnings>
<Message key="Native identity is neither present in the plan nor in the response" type="Warn"/>
</Warnings>
</ProvisioningResult>
</AccountRequest>
</plan>