Which IIQ version are you inquiring about?
8.5p1
Logs
<!DOCTYPE ProvisioningProject PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<ProvisioningProject>
<MasterPlan>
<ProvisioningPlan>
<ObjectRequest application="Application-HIDDEN" instance="EDITED_HIDDEN " nativeIdentity=" EDITED_HIDDEN " op="Create" type="organizationalUnit">
<AttributeRequest name=" identifier " op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="orgNo" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="dn" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="objectID" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="inbound" op="Set">
<Value>
<Boolean>true</Boolean>
</Value>
</AttributeRequest>
<AttributeRequest name="objectType" op="Set" value="organizationalUnit"/>
</ObjectRequest>
</ProvisioningPlan>
</MasterPlan>
<ProvisioningPlan trackingId=" EDITED_HIDDEN ">
<ObjectRequest application="Application-HIDDEN" instance=" EDITED_HIDDEN " nativeIdentity=" EDITED_HIDDEN " op="Create" type="organizationalUnit">
<AttributeRequest name="identifier" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="orgNo" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="dn" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="objectID" op="Set" value=" EDITED_HIDDEN "/>
<AttributeRequest name="inbound" op="Set">
<Value>
<Boolean>true</Boolean>
</Value>
</AttributeRequest>
<AttributeRequest name="objectType" op="Set" value="organizationalUnit"/>
</ObjectRequest>
</ProvisioningPlan>
</ProvisioningProject>
Share all details about your problem, including any error messages you may have received.
Hello everyone. In our project, we have been working on provisioning objects from a system to a JDBC connector using a Rule. The issue we have been facing is that when using AccountRequests the provisioning goes fine for the object, but we want the object to be provisioned as a Group with the objectType “organizationalUnit” (custom).
When the rule is sending the provisioning plan to the connector and the request only involves ObjectRequests, the rule never gets executed. When we try to fetch the result, we get a null value. Does anyone else have experience with this?
The logs above show the ProvisioningProject being sent to the connector.
Here is some of the code involved:
Provisioner provisioner = new Provisioner(context);
ProvisioningPlan provPlan = new ProvisioningPlan();
ProvisioningPlan.ObjectOperation objectOperation = ProvisioningPlan.ObjectOperation.Create;
if ("modify".equals(pendingOperation)) {
objectOperation = ProvisioningPlan.ObjectOperation.Modify;
} else if ("delete".equals(pendingOperation)) {
objectOperation = ProvisioningPlan.ObjectOperation.Delete;
}
ObjectRequest objectRequest = new ObjectRequest();
objectRequest.setApplication(applicationName);
objectRequest.setType(objectTypeObj.toString());
objectRequest.setOp(objectOperation);
objectRequest.setNativeIdentity(nativeIdentity);
objectRequest.setInstance(nativeIdentity);
for (Object entryObj : attributes.entrySet()) {
Map.Entry entry = (Map.Entry) entryObj;
Object attributeNameObj = entry.getKey();
if (attributeNameObj == null) {
continue;
}
String attributeName = attributeNameObj.toString();
Object attributeValue = entry.getValue();
ProvisioningPlan.Operation attributeOperation = ProvisioningPlan.Operation.Set;
if (attributeValue instanceof Map
&& (((Map) attributeValue).containsKey("operation")
|| ((Map) attributeValue).containsKey("value"))) {
Map attributeData = (Map) attributeValue;
Object operation = attributeData.get("operation");
if (operation != null && "remove".equalsIgnoreCase(operation.toString())) {
attributeOperation = ProvisioningPlan.Operation.Remove;
}
attributeValue = attributeData.get("value");
}
if (attributeValue != null) {
objectRequest.add(new AttributeRequest(
attributeName,
attributeOperation,
attributeValue));
}
}
Object objectId = appData.get("objectID");
if (objectId == null) {
objectId = attributes.get("objectID");
}
if (objectId != null) {
objectRequest.add(new AttributeRequest(
"objectID", ProvisioningPlan.Operation.Set, objectId));
}
Object inbound = appData.get("inbound");
if (inbound == null) {
inbound = attributes.get("inbound");
}
if (inbound != null) {
objectRequest.add(new AttributeRequest(
"inbound", ProvisioningPlan.Operation.Set, inbound));
}
Object state = appData.get("state");
if (state == null) {
state = attributes.get("state");
}
if (state != null) {
objectRequest.add(new AttributeRequest(
"state", ProvisioningPlan.Operation.Set, state));
}
objectRequest.add(new AttributeRequest(
"objectType", ProvisioningPlan.Operation.Set, objectTypeObj.toString()));
provPlan.add(objectRequest);
logger.trace(logPrefix + "Provisioning Plan : " + provPlan.toXml());
ProvisioningProject project = provisioner.compile(provPlan);
if (project == null) {
throw new GeneralException("Provisioner.compile returned without creating a project");
}
provisioner.execute(project);
logger.info(logPrefix + "Project after execute : " + project.toXml());