idn.getFirstAccount returning null value

Hi,

I have a generic rule where part of the code, idn.getFirstAccount method is used for searching for existence of an account for an identity.

Reconfirm that the parameter value for “applicationName” format is end with “[source]”?

I am facing an issue where this method always return null to me. I am not sure if the applicationName is right or wrong.

How could I verify the applicationName value is correct? I could not see in source details in API shows the name ends with “[source]”

This is a sample of the code.

String my_AD = "THISISMY-AD";
sailpoint.rule.Identity identity = idn.getIdentityById(uid);
String identityName = identity.getName();

String myAppName = my_AD + " [source]";
Account nhgAccount = idn.getFirstAccountmyAppName, identityName);
if (null != nhgAccount) {
   newValue = concatenateString(newValue, acc);
}

The name “[source]” should be dropped as far as I’m aware. This is not needed in rules and such.

You need to have the application name appended with [source]. We have a before provisioning rule where we need to append [source]

Actually you still need , as the “connector” on the IIQ running in the BG is creating with the [source].

@jolan , the application value is correct. what you can do to check is create a attribute in the Provisioning police and putting the ruel transform to return the value directly.

If that the case, not sure why it’s still return null. Could be IdentityName? How do I verify if identity.getName() is same value as the identityName for the account?

The “identityName” is the Attribute you define as ID on the authoritative source.

It could be it.

Hi Ivan,

Do you mean that identity.getName() is referring to the technical name of (uid) in the identity profile in this case?

How about identity.getUid() in this case?

No, the Identity Name is not UID, the identity name is the attribute you defined in the HR Source/Authorative source schemma as the ID or unioque attribute.

Thanks for the clarifying. Pardon me, last question. In this case, is identityName parameter in idn.getFirstAccount method also referring the account id attribute defined for the source?

Yeah, you need to pass the “identity” attribute of the source you want to capture the account from.

Not sure about this method

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