I need some help on querying identities in Buildmap cloud rule based on source name and identity attribute value

i need some help on querying identities in Build Map cloud rule based on source name and identity attribute value

here’s the article i am referring to article BuildMap Rule | SailPoint Developer Community

in that rule i want to query a identity based on other source name if the identity is exist, i have to get one attribute value to override in delimited file

In a BuildMap cloud rule (Delimited File), you cannot query identities or accounts from another source. The rule only has access to the current record being processed. There’s no idn / IdnRuleUtil available in that context, so cross-source lookups like:

  • identity search

  • account lookup from another source

  • pulling attributes from an existing identity

are not supported inside BuildMap.


What you should do instead

Option 1 (Recommended): Identity Attribute Rule

Move this logic to an Identity Attribute Rule, which does support cross-source queries.

That rule can:

  • Find the identity

  • Look up accounts from another source

  • Pull the attribute you need

  • Set/override the identity attribute

Example pattern:


String sourceName = "Other Source Name";
String lookupKey = identity.getAttribute("employeeNumber");

if (lookupKey != null) {
    Object account = idn.getAccountByNativeIdentity(sourceName, lookupKey);

    if (account != null) {
        return idn.getAccountAttribute(sourceName, lookupKey, "attributeName");
    }
}

// fallback
return identity.getAttribute("existingAttribute");

Option 2: Pre-stage the value in the file

If you control the feed:

  • Enrich the delimited file upstream

  • Include the attribute from the other source directly

Then your BuildMap becomes simple:


map.put("targetAttribute", record.get("overrideColumn"));

Option 3: Post-aggregation transform

Let the account aggregate normally, then:

  • Use identity profile mapping / transform

  • Derive the value after correlation


Bottom line

BuildMap = row-level transformation only

Cross-source logic = Identity Attribute Rule or transforms


If this helps you out please mark it as solution

Thanks for the quick help ! will try the options