Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

JSON not working in createaccount restapi connection

saurabhp
New Contributor
New Contributor

Hi,

We are trying to evaluate below condition in createaccount json but some how its not working. can you please let us know how we can handle this in rest api create account json

 

${user.employeeType} == 'Head Office Associate' ? 'uid='+ ${user.username} +',cn=users,dc=auhhonda,dc=com' : 'uid=' +${user.firstname}+' '+${user.lastname}+',cn=users,dc=auhhonda,dc=com'

 

Thanks

1 REPLY 1

rushikeshvartak
All-Star
All-Star

uid=" + ("Head Office Associate".equals(user.getEmployeeType()) ? user.getUsername() : user.getFirstname() + " " + user.getLastname()) + ",cn=users,dc=auhhonda,dc=com"


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.