We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Manager AccountID null check in AD

dpannem123
New Contributor
New Contributor

Hi , 

I am trying to null check for manager in AD with below options in Create/Update JSON but I am getting error. Please advise.

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

or

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

or

managerAccount==null?null:managerAccount.accountID

 

Error :

Checking DN for CN=darmbrust17,OU=Users,OU=Dev_Saviynt,DC=AD,DC=XXXX,DC=ORG.Not FOund DN for CN=darmbrust17,OU=Users,OU=Dev_Saviynt,DC=AD,DC=XXXX,DC=ORG. Error while creating account in AD - [LDAP: error code 19 - 000020B5: AtrErr: DSID-03153438, #1: 0: 000020B5: DSID-03153438, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 15000a (manager) ]

 

 

 

1 REPLY 1

SumathiSomala
All-Star
All-Star

Hi @dpannem123 

Did you try like this?

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

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.