Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

if-else condition in UpdateAccountJSON for AD

Soumyadeep_Das
New Contributor
New Contributor

I need to write an if else block for my AD connection updateaccountjson. I am using the below json but getting json parse error during provisioning :

{${if(user.customproperty44 !=null && user.customproperty44.equals('Immediate Suspension'))
'\"description\" : \"Please contact IAM Operations or PS Exec to discuss the status of this account\",'}}

I have been referring to the below posts and believe the issue was similar : 

https://forums.saviynt.com/t5/identity-governance/correct-syntax-for-if-else-condition-in-active-dir...

 

 I have been following your comments on the above post but not sure if this is similar.

[This post has been edited by a Moderator. We discourage the @ mention of other forum users or employees unless they have already involved themselves on the forum post.]

1 REPLY 1

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @Soumyadeep_Das 

Could you please try with below syntax.

{
${
if(user.customproperty44 !=null && user.customproperty44.equals('Immediate Suspension'))
'\"description\" : \"Please contact IAM Operations or PS Exec to discuss the status of this account\"'
}
}

Regards,

Dhruv Sharma