Set AC_NewName & AC_NewParent in Connector Rule

Hi @mohammedfavazhrb,

You can do the configuration in the Update Provisioning Policy to support your changes.

Below is the example of the Update Provisioning Policy or you can also try the After Modify Script to do your changes.

{
“name”: “Account Update”,
“description”: “Account Provisioning Policy”,
“usageType”: “UPDATE”,
“fields”: [
{
“name”: “AC_NewParent”,
“transform”: {
“type”: “static”,
“attributes”: {
“country”: {
“attributes”: {
“values”: [
{
“type”: “identityAttribute”,
“attributes”: {
“name”: “countryCodeIso3166”
}
},
“null”
]
},
“type”: “firstValid”
},
“countryAD”: {
“attributes”: {
“values”: [
{
“attributes”: {
“sourceName”: “Active Directory [QA]”,
“attributeName”: “co”
},
“type”: “accountAttribute”
},
“null”
]
},
“type”: “firstValid”
},
“OU”: {
“type”: “identityAttribute”,
“attributes”: {
“name”: “xadOu”
}
},
“value”: “#if($country != “null” && $country != $countryAD)$OU#{else}#end
}
},
“attributes”: {},
“isRequired”: false,
“type”: “string”,
“isMultiValued”: false
}
]
}