11/15/2022 09:23 PM
Hi,
We have installed IIS and deployed the Saviynt App as mentioned in Freshdesk. However, while we are trying to connect the same via REST Connector, we are getting a null response. Also, the error that we see in logs, states Source:Unknown.
We have tested the connectivity between SC2.0 client server to Exchange server as well and it is connecting. However the URL format as given by Saviynt in freshdesk, isn't working. Attaching my connection JSON. Please assist.
Application name : Saviynt Agent
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "http://xx.xxx.xxx.xxx/SaviyntAgent/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "application/json",
"properties": {
"userName": "Domain/saviynt",
"password": "xxxxxxx"
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic abcd",
"testConnectionParams": {
"http": {
"url": "http://xx.xxx.xxx.xxx/SaviyntAgent/PS/ExecutePSScript",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successReponse": [],
"successResponsePath": "",
"errors": [
"Couldn't authenticate you"
],
"errorPath": "error"
}
}
}
}
Solved! Go to Solution.
11/17/2022 09:00 PM
11/18/2022 01:39 AM
Hi Rushikesh,
We are trying to connect via IP hence not a DNS resolve issue.
Also, we tried with the said username format. It did not work
Error in webservica call.
11/18/2022 04:56 AM
Can you add below in your config json block of the exchange connector and send us the error?
{"showLogs": true}
11/22/2022 05:13 AM
Hi Sivagami,
Attaching logs after including showlogs as true:
11/22/2022 06:13 AM
The resource cannot be found means that url is not found
11/22/2022 06:27 AM
Hi Rushikesh,
The url was formed as per the syntax format provided by Saviynt.
http://HostName/ApplicationName/PS/ExecutePSScript.
Also, we were able to telnet the hostname from SC2.0 client server to the server where IIS is installed and Saviynt App is deployed.
IIS and SaviyntApp have been installed and deployed as per the documentation.
The url (http://[hostname]/SaviyntAgent/PS/ExecutePSScript) throws 404 error when hit from the browser in client machine. However this part of the url(http://[hostname]/SaviyntAgent) we are able to hit in the browser and it returns the folders with the application name.
As per the recent communication from Saviynt support we have been communicated that while using the same url in WINConnector type, the url does not give an error but there is an issue with the password and throws the following error :
{"log":"2022-11-22 13:09:47,414 [http-nio-8080-exec-97] DEBUG println.PrintlnToLogger - Println :: \u001b[1;31m| Error \u001b[22;39mjavax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher\u001b[m\n","stream":"stdout","time":"2022-11-22T13:09:47.414708706Z"}
The Rest Connector however displays that the url is not found.
Any of the connector if it works, it will solve our issue.
11/28/2022
01:00 AM
- last edited on
11/28/2022
12:38 PM
by
Tim
[Removed IP Address]
Hi,
Could someone help?
We are now getting an error as , "Access token is null"
Attached below is the connection JSON:
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "http://xx.xxx.xxx.xxx/SaviyntAgent/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "application/json",
"properties": {
"userName": "<username>",
"password": "<password>"
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic abcd",
"testConnectionParams": {
"http": {
"url": "http://xx.xxx.xxx.xxx/SaviyntAgent/PS/ExecutePSScript",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successReponse": [],
"successResponsePath": "responseText",
"errors": [
"Couldn't authenticate you"
],
"errorPath": "error"
}
}
}
}
11/28/2022 02:03 AM - edited 11/28/2022 02:04 AM
so, attaching my create account JSON.
{
"accountIdPath": "accountName",
"responseColsToPropsMap": {},
"call": [{
"name": "call1",
"connection": "userAuth",
"showResponse": true,
"url": "http://<hostname>/SaviyntAgent/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"Powershell.exe -File c:\/MASScripts\/Exchange_Mailbox.ps1 \\\"${user.customproperty3}\\\" \\\"${user.customproperty17}\\\"\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses":[
{
"message": "ProfileID Created Successfully"
},
{
"message": "ProfileID Updated Successfully"
}
],
"unsuccessResponses": {
"response[6].Objectreturned": ["Failure"]
}
}]
}
Error:
11/28/2022 09:21 AM
12/06/2022 03:58 AM
Hi,
This issue has now been resolved.
GET call isn't required and hence we directly tried for create account and it worked.
Even in Postman we were able to POST (200k) and not GET (404k Not Found).
We removed the test parameters in REST connection JSON, which actually validates the url as REST connection in itself cannot validate the url.
However, to show the connection as successful we removed the test parameters and tried create account which worked.