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

Create account json in AD fails if manager is paased as null

Prajna
New Contributor
New Contributor

Hi Team,

We are using the below mentioned logic for manager attribute. But the account creation fails if the manager is null with error in attribute conversion. Can you please suggest us a logic in this case.

"manager": "${managerAccount==null?'':managerAccount.customproperty23}"

Regards,

Prajna 

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

"manager": "${ if (managerAccount == null || managerAccount?.accountID == null || managerAccount?.accountID == '' ){''} else {managerAccount?.accountID} }"


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

Tried with above json but still create user fails with attribute conversion error.Please find the logs in the attachment.

Kindly suggest us with a solution.

Warm Regards,

Prajna Paramita 

"manager": "${managerAccount==null?'':managerAccount?.customproperty23}"


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

Manu269
All-Star
All-Star

"manager": "${managerAccount==null?null:managerAccount?.accountID}"

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.