and more in a single search tool across platforms. Read the announcement here. |
07/19/2022 12:56 AM
HI Team,
I am trying to provision account to IDMWorks and one the attribute has logic to check the length of employeeid
I have prepared the logic using if else block but the logic is not getting updated.
Logic is if employeeid is greater than or equal to 7 characters in length value to be printed is 100+empid
if less than 7 it should be only emp id
JSON that i am using is
{
"uid": "${user?.customproperty13}",
"cn": "${user.firstname},${user.lastname}",
"sn": "${user?.lastname}",
"owner": "@MGADM01",
"defaultgroup": "@MGHLD01",
"objectClass": [
"top",
"person",
"organizationalPerson",
"idforgperson"
],
"omvshome": "/",
"omvsProgram": "/bin/sh",
"omvsuid":"${if(user.customproperty4.toString().length() >= 7){100${user?.customproperty4}} else{user.customproperty4}},
"instdata": "${user?.customproperty4} HRID;${user?.username} LANID"
}
Can some one help me with the right json
Solved! Go to Solution.
07/19/2022 07:20 AM
what is 100 ?
"omvsuid":"${if(user.customproperty4.toString().length() >= 7){100${user?.customproperty4}} else{user.customproperty4}},
07/19/2022 09:08 AM
Hello @NrupenM,
This should work, give it a try :
"omvsuid":${if(user.customproperty4.toString().length() >= 7){'100'+user.customproperty4} else{user.customproperty4}},