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

Account Type transformation for account import

mgandr
New Contributor III
New Contributor III

Hello,

Can anyone help with incorporating conditional expression to determine the value of the accounttype field based on the userType in a REST Connector ImportAccountEntJSON? Specifically, if the userType is 1346, it should be set to "IT Admin"; if the userType is 1312, it should be set to "IT Viewer"; otherwise, it should default to the userType value.

Thank you.

 

 

 

4 REPLIES 4

naveenss
All-Star
All-Star

@mgandr use the below logic in your accountParams

"accounttype": "#CONST#${String userType = response.userType;if(userType=='1346'){return 'IT Admin'}else if(userType=='1312'){return 'IT Viewer'}else {return userType}}~#~char",

 

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

mgandr
New Contributor III
New Contributor III

Thanks for your help. The logic worked.

rushikeshvartak
All-Star
All-Star

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor III
Honored Contributor III

Hi @mgandr , are you receiving user type attribute from account import get call?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'