I am writing a BeforeOperation rule for Disable operation for a Web Service Connector.
I am trying to use the idn rule utilities by importing -
and trying to execute the below apis-
sailpoint.rule.Identity foundIdentity = idn.getIdentityById("uid"); idn.accountExistsByNativeIdentity(accRequest.getApplication(), accRequest.getNativeIdentity());
but it is throwing below error-
Typed variable declaration : Attempt to resolve method: getIdentityById() on undefined variable or class name: idn
Typed variable declaration : Attempt to resolve method: accountExistsByNativeIdentity() on undefined variable or class name: idn
These methods seems to be working with AD before provisioning rule so not sure why it is not working with WebService Connector.
Also, I am trying to use the provisioningPlan.getIdentity() method to fetch the identity object but it doesnot working and giving null. I am able to see the plan in logs and able to fetch the IDN native identity using provisioningPlan.getNativeIdentity() and account native identity using accReq.getNativeIdentity(). Not sure why provisioningPlan.getIdentity() is giving null.
Note- Input object provided by WebServiceBeforeOperation rule is -provisioningPlan
Any suggestions what i am missing here.