Hello
We are using SDIM to create tickets in topdesk.
This works, but we need to extend the provisioning plan with some information from the identity.
Currently we are using a beforeProvisioning rule bases on this blog.
It looks like the rule is executed and we see the attributes being added but the actual value is set on “Unknown” .
Is there something we are missing?
<![CDATA[
import sailpoint.object.*;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AccountRequest.Operation;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
import sailpoint.object.ProvisioningPlan;
import java.util.List;
List accountRequests = plan.getAccountRequests();
if (accountRequests != null) {
for (AccountRequest accountRequest : plan.getAccountRequests()) {
Identity identity = plan.getIdentity();
if (identity != null) {
String displayName = identity.getDisplayName();
String employeeNumber = identity.getAttribute("employeeNumber");
// Add attributerequests to account request
accountRequest.addArgument("displayName", displayName);
accountRequest.addArgument("employeeNumber", employeeNumber);
}
}
}
]]>