Use isUniqueLDAPValue to search for existing sAMAccountName

Hi Experts,

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'

Is there any configuration we are missing?

Thanks,
Tamalika

What is the value of appName here?

The name of the application:

String appName = application.getName();

Hi,

When you using these methods you need to make “samAccountName” attributes searchable.

Follow below:

Also for calculation of samAccountName you can use OOTB method like below.

result = idn.accountExistsByDisplayName(application.getName(), username);

-Abhinov

1 Like

Thank you, but does this method “accountExistsByDisplayName” also search Active Directory directly?

Hi,

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.

Let me know if its not clear.

-Abhinov

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