and more in a single search tool across platforms. Read the announcement here. |
01/02/2024 01:40 AM
Hi,
We have a requirement i.e., if saviynt has preferredfirstname then it will be the first name in AD, else Saviynt's firstname will be as firstname in AD.
Kindly suggest me the JSON format at connection level.
Solved! Go to Solution.
01/02/2024 01:48 AM
Hi @Harish1 ,
Try below and check:
"givenName": "${if(user?.preferedFirstName!=null){user.preferedFirstName} else {user.firstname}}"
01/02/2024 02:52 AM
Hi
Thanks for your response, I've tested using ternary operator.
"givenName": "${user.preferedFirstName!=null?user.preferedFirstName:user.firstname}" in update account JSON and tested for two users getting below error while running provisioning job. Kindly suggest.
Error while update account in AD : Cannot get property 'url' on null object
01/09/2024 12:27 AM - edited 01/09/2024 12:37 AM
Hi Pandharinath,
Can we provide the if else condition with check of certain value.
like below:
"givenName": "${if(user.Location=='India'){user.preferedFirstName} else {user.firstname}}"
And how can be used to send update to SNOW create / update JSON.
01/02/2024 02:14 AM
Using if-else
"givenName": "${if(user.preferedFirstName!=null){user.preferedFirstName} else {user.firstname}}"
Using ternary operator
"givenName": "${user.preferedFirstName!=null?user.preferedFirstName:user.firstname}"
01/02/2024 02:49 AM
Hi Sumathi,
Thanks for your response, I've tested the above in update account JSON and tested for two users getting below error while running provisioning job. Kindly suggest.
Error while update account in AD : Cannot get property 'url' on null object
01/02/2024 02:54 AM
@Harish1 ,
Can you share your CreateAccount JSON
01/02/2024 06:31 AM
Thanks for the help, as revalidated the issue is resolved.