IdnRuleUtil find and count identities operator not found

Hi everybody!

I am having trouble with IdNRuleUtil method
idn.countIdentitiesBySearchableIdentityAttribute(“email”, “equals”, “[email protected]”)

I do not know wich value is expected for operator. I tried “equals” and after Sailpoint deployed to tenant, it throws an exception (no exceptions shown on ccg.log, only see error on UI).

javadoc stays that it IdnRuleUtil class has 2 constants:
public static final java.lang.String EQUALS_FILTER

but when trying to add idn.EQUALS_FILTER or IdnRuleUtil.EQUALS_FILTER to my code, it does not compiles and does not pass validator:

using idn.EQUALS_FILTER:
Line 88 - [LintBSHVariableDeclarator(55)] Variable name equals of type ‘class java.lang.String’ cannot be cast to: class sailpoint.server.IdnRuleUtil
88: String equals = idn .EQUALS_FILTER

using IdnRuleUtil .EQUALS_FILTER, same error:
Line 88 - [LintBSHAmbiguousName(73)] null Exception: Could not find static value ‘EQUALS_FILTER’ from ‘IdnRuleUtil.EQUALS_FILTER’
88: String equals = IdnRuleUtil .EQUALS_FILTER

I uploaded a new version with upper case “EQUALS” string, but I am really making test/error with this. Attribute to be searched is “email”, which is searchable by default.

Any help will be appreciated.

Update: after deployment of support, i sorrounded code in a try/catch and returned exception message, so binding to identity profille field gave me this message:

Supported operations include “StartsWith” and “Equals” only. I guess now that it is “Equals”, with upper E and lowered remaint text. Will submit a new code, if it works I come back here to comment.

Yes, this will work!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.