Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/25/2023 06:35 AM
in the CreateAccountJson for AD how can i reference the value associated to a customproperty4 of a target account associated to the user.
For example, below what would be the syntax to get employeeID value that is listed as customattribute 4 of APP1 for the user
"mail":"${if(user.email == null){''} else {user.email}}",
"name":"${user.displayname}",
"title":"${if(user.title == null){''} else {user.title}}",
"employeeID":" ? "
Thanks
Solved! Go to Solution.
07/25/2023 06:40 AM
Hi @myasin ,
Try below expression to get value of CP4 from the account assigned to same user on endpoint "APP1".
${userAccount.get('APP1').customproperty4}
07/25/2023 10:24 AM
when I add :
"employeeID":"${userAccount.get('APP1').customproperty4}",
I get the below error:
Error while creating account in AD - No such property: userAccount for class: SimpleTemplateScript18856
08/09/2023 10:26 PM
Hi @myasin ,
You can use sav4sav to copy value from user’s account custompropertyX to user’s custompropertyX.
Once user’s custompropertyX is updated, you can push that value on other target accounts as well using update rule with action update account tasks.
Let me know if it helps.