and more in a single search tool across platforms. Read the announcement here. |
on 04/03/2023 10:32 AM
We are using syntax - "${user.customproperty58 != null? user.customproperty58 : ''}" while populating one attribute while provisioning but instead of blank value complete syntax is updated.
Create account JSON:
{
"accountExpires": "0",
"cn": "${cn}",
"name": "${cn}",
"displayName": "${user.displayname}",
"employeeNumber": "${user.customproperty65}",
"employeeID": "${user.employeeid}",
"info": "Account created through IAM on ${(new java.text.SimpleDateFormat('yyyy-MM-dd HH:mm:ss').format(new Date()))}",
"pwdLastSet": "0",
"objectClass": ["top", "person", "organizationalPerson", "user"],
"sAMAccountName": "${user.systemUserName}",
"extensionAttribute12": "${user.customproperty61}",
"msDS-cloudExtensionAttribute18": "${user.customproperty58 != null? user.customproperty58 : ''}",
"msDS-cloudExtensionAttribute19": "${user.customproperty63}",
"msDS-cloudExtensionAttribute20": "${user.customproperty64}",
"businessCategory": "${user.customproperty60}",
"userPrincipalName": "${user.systemUserName}@origin.com.au"
}
Logs: 2021-04-14 11:01:15,140 [quartzScheduler_Worker-3] ERROR ldap.SaviyntGroovyLdapService - Error while creating account Bot-RobotR2D5 in AD - Encountered "!=null?user.customproperty62:\'\'}\",\r\n\t\"msDS-cloudExtensionAttribute19\": \"" at a69e8d97-e70d-4396-9671-3bc0e33a6ee3[line 13, column 67]
Was expecting one of:
"[" ...
"}" ...
org.apache.velocity.runtime.parser.TemplateParseException: Encountered "!=null?user.customproperty62:\'\'}\",\r\n\t\"msDS-cloudExtensionAttribute19\": \"" at a69e8d97-e70d-4396-9671-3bc0e33a6ee3[line 13, column 67]
Was expecting one of:
"[" ...
"}" ...
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:131)
The issue is fixed after making the below changes