Here are two working Velocity transform examples for SailPoint ISC aggregation based on your requirements:
Lifecycle State Transform:
Sets lifecycle state = “Active” if all mandatory attributes are filled (not null/empty), else sets it to “Invalid”:
#if ($MandatoryAttr1 && $MandatoryAttr2 && $MandatoryAttr3)
Active #else
Invalid #end
Replace MandatoryAttr1, MandatoryAttr2, MandatoryAttr3 with actual attribute names from your HR source.
Manager Check Transform:
Checks if the user’s manager is CEO or Franchisee Owner; if yes, sets the manager attribute to the user itself (self manager):
Replace $manager with the attribute that stores the manager’s role or name. $self refers to the user identity itself.
These transforms can be applied during aggregation in the Identity profile mappings to dynamically set lifecycle state and validate manager assignment.
Yes, you can trigger an email notification in SailPoint when a user’s lifecycle state changes to “Invalid.” Simply enable the built-in “Lifecycle State Change” email notification in the identity profile settings. You can customize the recipients and email template as needed to notify relevant parties automatically.