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 connection testConnectionParams not working

jralexander137
Regular Contributor
Regular Contributor

Hi. I am trying to set up a connectionJson that doesn't use any authentication while including some test connection params in that connectionJson to actually test connectivity in the connectionJson. This is what I currently have but am not sure what I am overlooking here as I am not seeing any API response in the logs despite test connection returning successful.

 

{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"testConnectionParams": {
"responseColsToPropsMap": {},
"http": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"requestBody": "",
"httpParams": "",
"httpHeaders": {},
"httpContentType": "application/json"
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
}
}
}
}
}

11 REPLIES 11

Amit_Malik
Valued Contributor II
Valued Contributor II

@jralexander137 , if this is dummy ConnectionJSON then dont use testConnectionParams. It is not mandatory.

{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5
}
}
}

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

So my reasoning behind using testConnectionParams is to just test connectivity to the system without bringing in any account data. Are you saying that if its a dummy connectionJson then I cant include testConnectionParams? Or just not required kind of thing.

 

not required kind of thing. I now understand why you are using it. 

Is that API call working in postman? if yes, I would say try to import couple of accounts.

Else enable debug logs for connector and share logs. 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

How can I enable debug for a connection?

ConfigJSON

{
"connectionTimeoutConfig": {
"connectionTimeout": 10,
"readTimeout": 60,
"writeTimeout": 60,
"retryWait": 2,
"retryCount": 3

},
"showLogs": true
}

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Right, forgot to add that config to connection. TestConnection with and without testConnectionParams doesnt show anything in the logs but I do see what appears to be a connectivity failure when trying to import accounts. Is there not someway to get testConnectionParams in connectionJson working?

  • Connection JSON logs does not print.
  • Only Test connection params added in connection json prints in logs

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

Fair enough. This is the connectionJson i have with a testConnectionsParam value but not seeing anything  in the logs like i do when i try to do account import with the same endpoint. Nothing meaningful in logs showing why the testConnecitonParams might not be working.

 

{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"testConnectionParams": {
"http": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successResponse": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"successResponsePath": "ResponseMessage",
"errorPath": "ResponseMessage"
}
}
}
}

And  here is the acctEntImport config that gets entries in logs.

{"accountParams":{"connection":"userAuth","processingType":"SequentialAndIterative","call":{"call1":{"listField":"Users","keyField":"name","http":{"url":"https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1","httpMethod":"GET","httpContentType":"application/json","httpHeaders":{}},"colsToPropsMap":{"name":"LoginId~#~char"}}}}}

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



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


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

Here is the requested info 

jralexander137_0-1726846124632.pngjralexander137_1-1726846156860.png

 

CURL please


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