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

Use Case


The REST connector configured to integrate with target application is failing. Despite correctly configuring the JSON in the REST connector, the API calls are not functioning. The URL, HTTP parameters, credentials, and other settings in Saviynt and Postman are identical. However, the API works in Postman but not in Saviynt.
 
1.png

 

2.png

 

 

3.png

 

Pre-requisites


N/A

Applicable Version(s)


All
 

Solution

The issue is caused because of the special characters present in the application API URL. These special characters needs to be replaced with corresponding ASCII characters before configuring in REST connector. Refer below example for details

Working Postman URL

https://abc.com/odata/v2/User?$filter=status in 'f','t'&user_id=SFAPI_IAM 

4.png

 

Corrected Saviynt URL to be used in REST connector

https://abc.com/odata/v2/User?$filter=status%20in%20%27f%27,%27t%27&user_id=SFAPI_IAM 

In the above URL,

Space is replaced with %20

Apostrophe is replaced with %27

You can reference the HTML ASCII code to all characters here -> https://www.w3schools.com/tags/ref_urlencode.ASP

Which characters to encode?

Characters that require encoding are space, curly braces, apostrophes, double quote

If the API call is not working, it is worth encoding any character in the URL that is not a letter/number/underscore/colon/slash/ampersand/dot / equals / question mark/dollar sign/ comma and verifying if that resolves the issue.


For more information on REST connector refer document
https://docs.saviyntcloud.com/bundle/REST-v2020x/page/Content/REST-Integration-Overview.htm 

Comments
varunpuri
Regular Contributor
Regular Contributor

Hello @sudeshjaiswal ,

Request you to kindly have a look at this thread and assist if possible - https://forums.saviynt.com/t5/identity-governance/rest-multiple-calls-in-createaccountjson/m-p/67252...

I've opened this conversation and is related to the knowledge article you shared.

Best Regards,
Varun

Version history
Last update:
‎04/02/2024 10:43 AM
Updated by: