Can I directly access userGroups and userEmail as runtime variables similar to idn, log, identity Or are these only available through the parameters map?
If possible, could someone share a simple working example (transform JSON + rule snippet) showing the correct way to access these values?
If you are creating a Custom Idnetity Attribute Generator Cloud Rule, then, you cannot pass the runtime parameters from Transforms.
That approach is only for OOTB rule such as “Cloud Services Deployment Utility“.
In the custom Cloud IdentityAttributeRule which you are creating**,** you can only call the rule and input parameters will be passed inside the beanshell script.
Hi
,
This is how I had passed it in a Rule.
{
"name": "MultivalueRule",
"type": "rule",
"attributes": {
"name": "MultivalueRule",
"cloudSourceName": "PPS Flat File",
"attributeName": "concatTitleDept"
},
"internal": false
}
where cloudSourceName what the name of the source and attributeName was the input attribute
@rohit_wekhande thank you for your response. However, According to the SailPoint documentation for Rule Transforms (type: "rule"), any values defined under the attributes section of the transform are passed into the rule execution context and can be accessed inside the rule. The documentation example using Cloud Services Deployment Utility clearly shows attributes like operation and numChars being supplied via the transform and consumed by the rule at runtime.
A Rule Transform ("type": "rule") invokes a Transform Rule (type TransformRule) — NOT an IdentityAttribute rule. The variables in the attributes block ARE passed as dynamic variables to the TransformRule.
An IdentityAttribute Rule is a separate rule type, used directly in Identity Profile mappings via the “Complex Data Source” option — it does not receive transform-level attribute variables; it only gets log, idn, identity, and oldValue.
So userGroups and userEmail from the transform’s attributes block are only available in a TransformRule, accessed via the standard rule context, not in an IdentityAttribute rule. Docs to point to: