Hello developers
I have a before provisioning connector rule that gets the entitlements of an access request that assigns or removes groups in an application. For the add events the rule works correctly, but I am trying to get those attribute requests that the operation is a remove, I put a validation and to get the value of the operation I use the getOperation() method, but when I run a test it returns the following error:
Error in method invocation: Method getOperation() not found in class java.util.ArrayList
These are the classes that I import in the rule:
import sailpoint.object.Identity;
import sailpoint.object.ProvisioningPlan;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
import sailpoint.api.IdentityService;
import sailpoint.api.SailPointContext;
import sailpoint.tools.GeneralException;
import java.util.List;
import java.util.Map;
import java.net.URLEncoder;
Here is an example of the provisioning plan that processes the rule:
<ProvisioningPlan nativeIdentity="12345">
<AccountRequest application="MySource [source]" nativeIdentity="[email protected]" op="Modify">
<AttributeRequest name="groups" op="Remove">
<Attributes>
<Map>
<entry key="comments" value="Test Access Request"/>
</Map>
</Attributes>
<Value>
<List>
<String>Entitlement1</String>
<String>Entitlement2</String>
</List>
</Value>
</AttributeRequest>
</AccountRequest>
How can I get the value of the request attribute operation to be able to perform my validation?
I hope you can help me.
Regards.