Source Name formatting in Cloud Correlation Rules Help

Problem:

Some time ago, SailPoint changed how the source “technical name” was created. It changed from the “Source Name [source]” format to the "Source Name [source-23438279834329] format.

I am updating a Cloud Manager Correlation rule to include a new source. As a part of this rule, I need to call the ‘idn.getAccountByNativeIdentity()’ method, which needs the Source Name as a parameter. All previous sources in this rule were created back when “Source Name [source]” was the format, but this new source I am adding is of the “Source Name [source-23438279834329]” format.

Can anyone tell me which format I should use for the ‘idn.getAccountByNativeIdentity()’ method? This formatting has switched back and forth a time or two, and I cannot find any concrete answers.

Thank you!

HI @seth_hexum i was looking at javadoc and found that it accepts the SourceID
image

You can use the sourceId of the source as it will remain same till the time you don’t delete it.

Hope this helps

Hello Seth. Neeraj’s suggestion is the right direction. I would use the source id rather than trying to work out which internal source-name format SailPoint generated.

The current IdnRuleUtil Javadoc shows the method as:

Account getAccountByNativeIdentity(String sourceId, String nativeIdentity)

with the first argument described as “The id of the source.” That same Javadoc also explains why your existing rules using the older name format still work. SailPoint kept backward compatibility, so the account lookup methods can still resolve a source name passed in place of the id. That is why you have not had to change those older rules.

For the new source, I would avoid depending on whether the internal name was generated as Source Name [source] or Source Name [source-xxxx] and just pass the source id instead. You can get it from the source details in the admin console, or through the Sources API by looking up the source by name.

Since this is a Manager Correlation Rule, the application object is not one of its inputs. If the source you need is the one represented by the current link, you can get its id directly in the rule with:

link.getApplicationId()

If you are looking up an account on a different source, then use that other source’s id instead. That way, the rule no longer depends on how SailPoint formats the internal source name.