How to print oldValue - log in the sailpoint.log IdentityAttribute

The ‘IdentityAttribute’-Rule is used during SourceMapping from an application account (Link, for instance the HR source account) to an attribute on the identity-cube if it is set as Application Rule. This will run during the identity refresh phase of the Aggregation Task for that Application (and during IdentityRefresh with option ‘Refresh identity attributes’ enabled)
image

It can also be used as a Global Rule in the SourceMapping ro an attribute on the Identity-cube, where it is not tied to an application. It will run each time there is a refresh on the identity (each aggregation task and during IdentityRefresh with option ‘Refresh identity attributes’ enabled). An example might be to count the number of accounts an Identity has and put that number in an attribute.
image

The value returned by the ‘IdentityAttribute’-Rule will be put as value of the attribute on the identity-cube. The ‘oldValue’ available in the rule is the value of the attribute as it was set before the rule runs. It is just extra information which can be used within the rule. If the attribute value should not change (for whatever reason), the oldValue should be returned the ‘IdentityAttribute’-Rule.

Take a look at the sequence diagram. The ‘IdentityAttribute’-Rule runs in the part of the Source Mapping.

– Remold