Hi Experts,
I have configured an “Update” Provisioning Policy in the Active Directory source to set the AC_NewParent with the new OU. We have an identity attribute called “xadOu” where we calculate the OU Path based on the user’s country.
Here is the Provisioning Policy:
{
"name": "Account Update",
"description": "Account Provisioning Policy",
"usageType": "UPDATE",
"fields": [
{
"name": "AC_NewParent",
"transform": {
"type": "static",
"attributes": {
"country": {
"type": "identityAttribute",
"attributes": {
"name": "countryCodeIso3166"
}
},
"OU": {
"type": "identityAttribute",
"attributes": {
"name": "xadOu"
}
},
"value": "#if($country != '')$OU#{else}#end"
}
},
"attributes": {},
"isRequired": false,
"type": "string",
"isMultiValued": false
}
]
}
The problem now is, the AC_NewParent gets added to the Provisioning Plan for any attribute changes at the moment. Is it possible to calculate in the transform to return a value for the “AC_NewParent” only when there is a change in the country attribute? Is it possible to refer previous attribute values in the transform?
Here is how the plan looks like at the moment when the lastname of the user was updated:
Looking forward to your inputs!
Thanks,
Tamalika
