We are trying to use the following method to search for uniqueness directly in AD based on the sAMAccountName attribute:
result = idn.isUniqueLDAPValue(identityName,appName,"sAMAccountName", greatest);
However, the following error is returned:
java.lang.RuntimeException: sailpoint.tools.GeneralException: The application script threw an exception: java.lang.IllegalStateException: Unable to find definition of attribute named 'sAMAccountName'
This will search within the accounts aggregated into ISC in Active Directory source. Not only this, but also all methods which we use in rule will be able to search only accounts aggregated into ISC.