Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest API Import User JSON URL issue

Smitakkhi
New Contributor II
New Contributor II

I am trying to import user by configuring the below import user json-

{
"connection": "userAuth",
"showResponse": true,
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"url": "https://....../person?lastname=${user.lastname}&firstname=${users.firstname}&birthdate=1999-10-20&email=${users.email}",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "${refresh_token}"
},
"userResponsePath": "Persons",
"colsToPropsMap": {
"customproperty2": "id~#~char",
"firstname": "firstname~#~char",
"lastname": "lastname~#~char",
"email": "email~#~char",
"customproperty21": "birthdate~#~date"
}
}

 

But I am getting below error

Got Webservice API Response: [error:Error Illegal character in query at index 70: https:// .../person?lastname=${user.lastname}&firstname=${user.firstname}&birthdate=1999-10-20&email=${user.email}]

[This message has been edited by moderator to disable url hyperlink]

6 REPLIES 6

Raghu
All-Star
All-Star

@Smitakkhi  can you modify the url please and change below

user.firstname and user.email instead of users. and try

"url": "https://....../person?lastname=${user.lastname}&firstname=${users.firstname}&birthdate=1999-10-20&email=${users.email}",


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Smitakkhi
New Contributor II
New Contributor II

I have tried with user and users both . It is not working .

rushikeshvartak
All-Star
All-Star

Refer https://forums.saviynt.com/t5/identity-governance/multiple-calls-illegal-character-when-using-respon...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

I have tried using url as "url": "https://....../person?lastname=${user.lastname}&firstname=\\${users.firstname}&birthdate=1999-10-20&email=\\${users.email}", but still it is not accepting.

Please share logs in txt file


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Smitakkhi
New Contributor II
New Contributor II

Hi,

I have pasted some part of the logs -

2024-05-08T14:09:12+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-4-DEBUG-Getting response statusCode null, so failing User Import Job
 
 
As you can see it still is not dynamically picking up user information . Its not able to identify the $ which is used to fetch the user information from Saviynt.

[This message has been edited by moderator to edit URL]