Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/20/2024 06:05 AM
As per requirement, we need to change UPN while disabling accounts when there is change in user DIVISION. In other cases, under normal termination it should not update UPN. We tried to put in the below mentioned condition in disable account JSON. But, the task is not getting processed.
"userPrincipalName": "${if(user.Division='BU10')?{user.customproperty2} else {user.customproperty1}}"
09/20/2024 06:33 AM - edited 09/20/2024 06:34 AM
"userPrincipalName": "${if(user.division='BU10'){user.customproperty2} else {user.customproperty1}}"
09/23/2024 01:13 AM
Hi @Amit_Malik ,
I tried "userPrincipalName": "${if(user.division='BU10'){user.customproperty2} else {user.customproperty1}}"
But the task is not getting processed. Is there any other config that we're missing?
09/23/2024 01:46 AM
any error in logs ? retry count increasing ??
09/23/2024 02:19 AM - last edited on 09/23/2024 02:51 AM by Sunil
Hi @Amit_Malik ,
Yes, retry counts are increasing but no error in the task.
attached logs for reference. User-BU86831 and remove account task id-2882.
Remova account json:
{
"removeAction": "SUSPEND",
"userPrincipalName": "${user.division == 'BU10' ? user.customproperty2 : user.customproperty1}",
"moveUsertoOU": "OU=Disabled Users,OU=IGA,DC=t52,DC=quadrupel,DC=local",
"deleteAllGroups": "Yes",
"userAccountControl": "514"
}
[This message has been edited by moderator to mask sensitive info]
09/23/2024 07:24 AM
{
"removeAction": "SUSPEND",
"userPrincipalName": "${user.division == 'BU10' ? user.customproperty2 + '@xx.com' : user.customproperty1 + '@xxx.com'}",
"moveUsertoOU": "OU=Disabled Users,OU=IGA,DC=t52,DC=quadrupel,DC=local",
"deleteAllGroups": "Yes",
"userAccountControl": "514"
}
09/20/2024 07:53 AM
"userPrincipalName": "${user.division == 'BU10' ? user.customproperty2 : user.customproperty1}"
09/23/2024 01:12 AM
Hi @rushikeshvartak ,
I tried "userPrincipalName": "${user.division == 'BU10' ? user.customproperty2 : user.customproperty1}".
But the task is not getting processed. Is there any other config that we're missing?