ResourceObject getIdentity Method Return Type

I’m looking at the Java Docs and the Correlation Rule documentation while trying to put together a correlation rule.

From the documentation, and the feedback I’m receiving from the Rule Development Kit, it appears as though the getIdentity() method within the sailpoint.object.ResourceObject class does not return anything. Is this the case? If so, what is the purpose of this method?

I would like to use this method to pull the identity, and pull in Identity Attributes off of that object, if possible. The best alternative to this seems like it is using idn.idn.attrSearchGetIdentityName() to search for the identity.

The getIdentity method for the ResourceObject will return the native identity of the account being aggregated (account ID on the schema). So your best bet is probably to use that idn rule util method to try and lookup an identity.

The inputs of the correlation rule contain the argument “idn” of type sailpoint.server.IdnRuleUtil and it provides many methods we can use to develop rule logic. You may want to consider exploring this further.
Java docs | SailPoint Developer Community