08/28/2023 09:57 AM
Hi Team,
We are using the update account json to push the updates, we observed that update account task are getting completed but updates are not pushed and we didn't see any error in logs.
Please help us to resolve this issue.
Thanks,
Sai Meghana
08/28/2023 11:24 AM
Hi @saimeghana ,
Please share the details of the connector and business use case details with update account json
Thanks,
Hemanath J
08/28/2023 12:54 PM
Hi @Hemanath,
Use case: Trying to rehire the user, then the accountid should get changed as per the user profile, we have a user update rule where if OU get updated it will create the update account task and push those updates into accounts.
Please find the Update account json for ADSI connector:
{
"objects": [{
"objectClasses": [
"user"
],
"distinguishedName": "${account.accountID}",
"moveObjectToOU": "${if(account.accounttype==null || account.accounttype=='' || account.accounttype=='Primary Account'){user.customproperty5}else{''}}",
"deleteAllGroups": "Yes",
"attributes": {
"userPrincipalName": "${if(account.accounttype=='Technical Account'){account.customproperty6}else{user.customproperty2}}",
"title": "${if(null!=user.jobDescription && account.accounttype=='Primary Account'){user.jobDescription}else{''}}",
"sn": "${user.lastname.toLowerCase().replaceAll(/(^|\s|-)\w/) { match -> match[0].toUpperCase()}}",
"samaccountname": "${if(account.accounttype=='Primary Account'){user.customproperty1}else{account.name}}",
"cn": "${if(null!=user.customproperty13 && account.accounttype=='Primary Account'){user.customproperty13.toLowerCase().replaceAll(/(^|\s|-)\w/) { match -> match[0].toUpperCase()}}else {''}}",
"manager": "${if(user.customproperty6 == null && user.customproperty36 == null){''} else if(user.customproperty36==null){user.customproperty6}else{user.customproperty36}}"
}
}]
}
Thanks,
Sai Meghana
08/28/2023 08:25 PM
Its not updated in Saviynt / target ?
08/28/2023 10:47 PM
In saviynt.
Thanks,
Sai Meghana