and more in a single search tool across platforms. Read the announcement here. |
01/03/2024 05:09 AM
Hi,
We have a requirement that AD userprincipalname need to be update with @XYZ.com ( saviynt's email attribute needs to map with AD's Userprincipalname. We have multiple email domains i.e.,@AB.com, @CB.com but in AD's userprincipalname, domain needs to come as @XYZ.com only). Below is the sample JSON format we have used in the AD connection level. Please suggest correct format.
"userPrincipalName": "${(user.email.replace('@AB.com','@XYZ.com') || user.email.replace('@CD.com','@XYZ.com'))}",
01/03/2024 05:11 AM
You need to use if else condition
01/03/2024 05:19 AM
Can you please suggest the right format using above attributes.
01/03/2024 05:23 AM
userPrincipalName": "${(user.email.replace('@AB.com','@XYZ.com').replace('@CD.com','@XYZ.com'))}",
01/03/2024 05:32 AM
Hi @Harish1 ,
Use if else with your condition. Below is the example of userprincipalname attribute with if-else.
"userPrincipalName" : "${if(user?.username!=null){user.username + '@dev.abc.com'}}
01/03/2024 08:50 AM