Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/22/2024 08:41 AM - last edited on 08/23/2024 02:37 AM by Sunil
Hi
I used the Thycotic connector and the connection JSON is successful. However ImportAccountEntJSON is not working and I can't import entitlements or accounts. The error I'm seeing in the job is:
Error WebService call failed After retrying 2 times with responseStatusCode null - Failed url-https://****.secretservercloud.eu/api/v1/users?filter.includeInactive=true&skip=0&take=100 with Error Message-null
It works in Postman fine, can you advise why your standard Thycotic connector isn't working for me in this instance please?
ConnectionJSON + ImportAccountEntJSON and Postman curl command for successfully getting users attached.
Solved! Go to Solution.
08/22/2024 08:45 AM
Postman screenshot
08/22/2024 08:58 AM
08/22/2024 09:07 AM
08/22/2024 09:15 AM
all not working
08/22/2024 08:56 AM
Hi @do12 can you share logs in text format?
08/22/2024 09:15 AM - last edited on 08/23/2024 02:39 AM by Sunil
08/22/2024 10:36 AM
08/22/2024 01:44 PM
nothing useful in logs when I generate connection. what should I search for on logs in this scenario?
08/22/2024 01:46 PM
You can give logs for 5 minutes once clicked on save conection button
08/22/2024 02:04 PM
08/22/2024 07:33 PM
Logs are not relevant . What is name of connection ?
08/23/2024 01:30 AM - last edited on 08/23/2024 02:43 AM by Sunil
I've added test connection in connection JSON as well:
"testConnectionParams": {
"http": {
"url": "https://removed.secretservercloud.eu/api/v1/users?filter.includeInactive=true&skip=0&take=1 ",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json",
"Accept": "application/json" }
},
This step fails. I've attached the logs.
[This message has been edited by moderator to mask sensitive information]
08/23/2024 05:46 AM
This is not correct way to add testconnectionParam.
Share full json
08/23/2024 01:04 PM
If the connection JSON I add before says connection successful why would I not be able to see any logs?
Here is the full connection JSON with test added which fails. Connection name is Secret_Server_DEV.
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://****.secretservercloud.eu/oauth2/token",
"httpMethod": "POST",
"httpParams": {
"username": "****",
"password": "****",
"grant_type": "password" },
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "*/*" },
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Authentication failed or expired token",
"retryFailureStatusCode": [
401,
403
],
"authError": [
"Login failed",
"Authentication failed or expired token" ],
"timeOutError": "Authentication failed or expired token",
"errorPath": "message",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "abcd",
"testConnectionParams": {
"http": {
"url": "https://****.secretservercloud.eu/api/v1/users?filter.includeInactive=true&skip=0&take=1",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json",
"Accept": "application/json" }
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"unsuccessResponses":
{
"statusCode": [400, 401, 404, 500]
}
}
}
}
}
08/23/2024 01:16 PM
Hardcode token in testconnection param and share logs during save connection
08/23/2024 03:01 PM
08/24/2024 08:48 AM
You have issue with connection JSON use below
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://abctest.secretservercloud.com/oauth2/token",
"httpMethod": "POST",
"httpParams": {
"username": "xyz@abc.com",
"password": "abctss1+",
"grant_type": "password" },
"httpHeaders": {
"Accept": "application/json" },
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Authentication failed or expired token",
"retryFailureStatusCode": [
401,
403
],
"authError": [
"Login failed",
"Authentication failed or expired token" ],
"timeOutError": "Authentication failed or expired token",
"errorPath": "message",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "<specify access token>",
"testConnectionParams": {
"http": {
"url": "https://abctest.secretservercloud.com/api/v1/users?filter.includeInactive=true&take=1&skip=0",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"Authorization": "${access_token}" }
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
}
}
}
}
}
08/24/2024 12:39 PM
Hi @do12 , here is the connection JSON working for us.
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://abc.secretservercloud.co.uk/oauth2/token",
"httpMethod": "POST",
"httpParams": {
"username": "xyz",
"password": "abc",
"grant_type": "password"},
"httpHeaders": {
"Accept": "application/json"},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Authentication failed or expired token",
"retryFailureStatusCode": [
401,
403
],
"authError": [
"Login failed",
"Authentication failed or expired token"],
"timeOutError": "Authentication failed or expired token",
"errorPath": "message",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer AgIDA4LD1eCplJEVMtMdOuS7_DELETED",
"testConnectionParams": {
"http": {
"url": "https://abc.secretservercloud.co.uk/api/v1/users?filter.includeInactive=true&take=1&skip=0",
"httpContentType": "application/json",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"Authorization": "${access_token}" }
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
}
}
}
}
}
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
08/27/2024 04:05 AM
thank you this is working now.