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

Error Parsing JSON for request based New Account Task on AD Endpoint due to Dynamic Attribute

Ajit
New Contributor III
New Contributor III

Hi Team,

We have a use case to provision account in AD based on requests coming from ServiceNow/API call.

For setting the manager attribute in AD, we are using a dynamic attribute in the create account JSON as: "manager": "${managerDN}" and we are getting Error parsing JSON.

but same is working fine if the AD account is getting provision through birthright rule.

Can you please help why the same is not getting processed by Saviynt for request-based account?

Thanks,

13 REPLIES 13

Manu269
All-Star
All-Star

Share the json which you are using?

Also share the screenshot of DA

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

rushikeshvartak
All-Star
All-Star

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️


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

Ajit
New Contributor III
New Contributor III

@rushikeshvartak Thank you for the response, please find the log snapshot 

Ajit_0-1716261895817.png

Ajit_1-1716262045576.png

The same create account JSON is working for birthright provisioning in AD with the mapping "manager": "${managerDN}". And for request based as well if we are not using the mapping - "manager": "${managerDN}"

Thanks,

 

  • Please share josn
  • please share logs in text file

‼️‼️⚠️Keep company-specific private information masked on public forums, such as the name and URL.⚠️‼️‼️


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

Ajit
New Contributor III
New Contributor III

@rushikeshvartak Below is the JSON:

Ajit_0-1716269371177.png

Attached is the logs in text file.

 

Share json in text file as your json have typos 


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

Ajit
New Contributor III
New Contributor III

@rushikeshvartak Please find attached JSON as text file.

Thanks,

Ajit
New Contributor III
New Contributor III

@rushikeshvartak  Any suggestion?

Thanks,

{
"sAMAccountName": "${task.accountName}",
"userPrincipalName": "${task.accountName}@ABCD.gov.au",
"displayName": "${user.lastname.toUpperCase()}, ${user.firstname.substring(0, 1).toUpperCase()}${user.firstname.substring(1)} (Priv Account)",
"userAccountControl": "1048576",
"title": "${user.title}",
"personalTitle": "${user.customproperty2}",
"manager": "${managerDN}",
"department": "${user.departmentname}",
"givenName": "${user.firstname}",
"sn": "${user.lastname}",
"division": "${user.customproperty12}",
"objectClass": ["top", "person", "organizationalPerson", "user"],
"employeeNumber": "${user.username}",
"employeeID": "${user.username}",
"description": "${requestAccessAttributes?.get('description').replaceAll('[\n\r]', '').trim()}",
"pwdLastSet": "0"
}


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

Ajit
New Contributor III
New Contributor III

@rushikeshvartak Now getting below error, even if the manager has active account in AD.

Ajit_0-1716379334901.png

A snippet from the logs:

Ajit_0-1716380059625.png

Attached is the complete log file. Please suggest.

Thanks,

 

Without manager does it working ?


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

Ajit
New Contributor III
New Contributor III

@rushikeshvartak yes, if we are not using the mapping "manager": "${managerDN}" it is working. And getting the same error as above if we are trying to provision account to user whose manager does not have an account in AD. 

In Saviynt we have two endpoints - "AD", "AD ABC" (both are pointing to same AD server)

1. The manager account is on the AD endpoint. 

2.This issue we are facing when trying to create user account in "AD ABC" endpoint and setting the manager attribute with the DN of the manager account created on "AD" endpoint from Saviynt side.

Please suggest if this needs to be handled in different way.

Thanks,

Account should exists in same endpoint then it will work 


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