Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners click HERE | EMEA/APJ Partners click HERE |
02/19/2024 01:19 AM
Hi,
We got a requirement to update the AD firstname based on saviynt preferredfirstname or firstname. we are using the below JSON format in update account json.
"givenName": "${user.preferedFirstName!=null?user.preferedFirstName:user.firstname}"
But the challenge is business team wants to exclude some set of users from this firstname update (AD).
Kindly suggest us the correct format.
02/19/2024 04:10 AM
Hi @Harish1 , reading your post it looks that their is no logic for exclusion and it is just some users to excluded. You can update their CP and use IF else condition, something like below
"givenName": "${if(user.Location=='India' && user.preferedFirstName!=null){user.preferedFirstName} else {user.firstname}}"
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
02/22/2024 10:28 PM
Hi Amit
Thanks for your response, as we required to completely exclude the set of users with that logic.
We don't want to update (Bypass) Given Name attribute for some set of ids.
The above suggested query will update the excluded id also with if or else.
Thanks,
Harish
02/19/2024 05:59 PM
You need to use customproperty to define excluded list and use below sample code
"givenName": "${if(user.customproperty60=='excluded' && user.preferedFirstName!=null){user.preferedFirstName} else {user.firstname}}"
02/22/2024 10:27 PM
Hi Rushikesh,
Thanks for your response, as we required to completely exclude the set of users with that logic.
We don't want to update (Bypass) Given Name attribute for some set of ids.
The above suggested query will update the excluded id also with if or else.
Thanks,
Harish
02/22/2024 10:29 PM
"E_MAIL":"${if(user.email!=null && user.email?.length() >0) ? user.email : (SAVIYNTNOTCHANGED) else (SAVIYNTNOTCHANGED)}"
02/22/2024 11:06 PM
"givenName":"${if(user.preferedFirstName!=null && user.preferedFirstName?.length() >0) ? user.preferedFirstName : (SAVIYNTNOTCHANGED) else (SAVIYNTNOTCHANGED)}"
we required that, if prefered firstname is there then given name needs to update with the user.prefered firstname else it needs to be update with user.firstname. But for some set of id's the complete logic(if else) needs to be bypass.
I hope you understand now. as per your suggested query user.firstname not in the scope.
Regards,
Harish
02/25/2024 06:56 PM
You can bypass using SAVIYNTNOTCHANGED