I have a before provisioning rule for a web services connector which evaluates the provisioning plan and according to a certain type of identity when its manager is updated it places a default manager, however the event has another AttributeRequest with the default manager.
Rather than adding a new attribute request, iterate over the plan to see if a manager attribute request is already present; if it is, use the setValue() method to update its value.
I have placed the set value method but it returns this error:
Error in method invocation: Method setValue(sailpoint.object.ProvisioningPlan$AttributeRequest) not found in class’sailpoint.object.ProvisioningPlan$AccountRequest’ : at Line: 69
This is how it is being sent:
AttributeRequest newAttReq = new AttributeRequest("manager",ProvisioningPlan.Operation.Set,"[email protected]");
ar.setValue(newAttReq);
With your recommendation I have managed to replace the value of the manager but when I place it in the request to send it to the application’s API, a reference to an object appears. How can I get it to place the value I require?
AttributeRequest newAttReq = new AttributeRequest("manager",ProvisioningPlan.Operation.Set,"[email protected]");
at.setValue(newAttReq); //replace manager value
This is the request that is sent to the application API:
What is the source of the manager attribute?
If it is coming from an identity attribute via attribute sync, then a transformation rule might be.a better place for the logic you are implementing.