02/08/2023 01:26 PM - edited 02/08/2023 02:16 PM
Hi,
I am working on the ADSI account creation json. I am trying to set the attribute 'displayname'. The logic behind it is, if the user has middlename then the displayname should be lastname, firstname, middlename.
If the user does not have a middlename, then the logic is just, lastname, firstname.
I tried variations of the below line. Does anyone have any syntax recommendations that maybe I am missing? Thank You!!!
Line: "displayName": "${if ({user.middlename} != null) {user.lastname} {user.firstname} {user.middlename} else {user.lastname} {user.firstname}}"
"displayName": "${if ({user.middlename} != null) '{user.lastname} {user.firstname} {user.middlename}' else '{user.lastname} {user.firstname}'}"
Solved! Go to Solution.
02/08/2023 02:43 PM
02/08/2023 03:13 PM
That worked! Thanks so much!