Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/17/2024 01:35 AM - last edited on 09/17/2024 02:29 AM by Sunil
09/17/2024 01:41 AM - edited 09/17/2024 01:41 AM
Hi @ShantanuKumar if you try to run wsretry job again does it work?
09/17/2024 04:35 AM
Already tried getting the same error
09/17/2024 05:58 AM
I see there is extra hypen in call 2
"httpParams": "{\"op\":\"add\",\"path\":\"/members/-\",\"value\":\"${user.username}\"}",
use
"httpParams": "{\"op\":\"add\",\"path\":\"/members/\",\"value\":\"${user.username}\"}",
09/17/2024 06:08 AM - edited 09/17/2024 06:08 AM
That hyphen is required you can see in POSTMAN Body too
09/17/2024 06:12 AM
@ShantanuKumar what I believe as it is a patch request it will be updating a existing data.
Are there 2 different application endpoint been utilised .. because there could be changed of delay in replicationon target end where you are planning to make a patch request.
09/17/2024 07:07 AM
If there was any delay in replication on target so it should also not work in Postman but it is working fine in Postman but only getting the issue with Saviynt.
09/17/2024 07:11 AM
@ShantanuKumar are you performing the patch request instantly? Or after a delay of 30 sec or a min ? Through postaman?
09/17/2024 07:18 AM
I am performing the Patch Request Instantly through postman.
09/17/2024 10:36 AM
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.‼️‼️⚠️
09/18/2024 01:10 AM
Hello Rushikesh,
Below is the curl command from POSTMAN:
curl --location --request PATCH '####URL####?access_token=############################' \
--header 'Content-Type: application/json' \
--header 'Cookie: PF=############################; JSESSIONID=############################' \
--data '[
{
"op": "add",
"path": "/members/-",
"value": "12345678"
}
]'
09/18/2024 01:24 AM
@ShantanuKumar if you run the job again after a min or 2 still it fails ??
09/18/2024 03:49 AM
Yes it does fails
09/18/2024 04:29 AM
09/18/2024 04:31 AM
Yes all other operations are working
09/18/2024 04:38 AM
09/18/2024 04:46 AM
As the CreateAccountJSON itself is not working so not able to create any accounts so haven't tried disable account, also is there something known as PATCHWITHBODY and does Saviynt supports it if yes then let me know
09/18/2024 04:50 AM
Just now you confirmed all operation works now create not. Please confirm what all JSONs are working ?
09/18/2024 05:45 AM
Other all operations are working in Postman i was referring that and as CreateAccountJSON is not working correctly so I am not able to Test other operations like RemoveAccountJSON. Also I am adding ConnectionJSON below:
ConnectionJSON:
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "https://URL",
"properties": {
"userName": "###########",
"password": "###########"
},
"httpMethod": "POST",
"httpHeaders": {"Content-Type": "application/json"},
"httpContentType": "application/json",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Bearer abcd"
},
"dlAuth": {
"authType": "oauth2",
"url": "https://URL.oauth2",
"httpMethod": "POST",
"httpParams": {
"refresh_token": "${refresh_token}",
"grant_type": "client_credentials",
"client_id": "###########",
"client_secret": "###########",
"scope": "api"
},
"httpHeaders": {
"Accept": "application/json"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "invalid_request",
"authError": [
"invalid_request"
],
"refreshType": "RefreshToken",
"refreshTokenResponsePath": "refresh_token",
"refreshToken": "###########",
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"retryFailureStatusCode": [
401
],
"accessToken": "Bearer ###########"
}
}
}
09/18/2024 05:48 AM
09/18/2024 06:05 AM - edited 09/18/2024 06:05 AM
Hello Rushikesh,
Below are the POSTMAN Authentication screenshot:
And below is the Postman CURL Command:
curl --location --request PATCH '####URL####?access_token=############################' \
--header 'Content-Type: application/json' \
--header 'Cookie: PF=############################; JSESSIONID=############################' \
--data '[
{
"op": "add",
"path": "/members/-",
"value": "12345678"
}
]'
09/18/2024 07:49 AM
How does authentication works with Azure/AD Auth ?
09/18/2024 10:22 AM
Currently we don't have Azure/AD Auth yet
09/18/2024 10:23 AM
Try authentication similar like below post https://forums.saviynt.com/t5/identity-governance/outreach-authorization-is-not-working-for-rest-con...
09/19/2024 05:42 AM
Hey Rushikesh,
I checked the suggested post but I see there are multiple JSON which are attached and those are not resolved and they are still facing the issue, could you please provide the Connection JSON what are you mentioning.
Thanks,
Karan Chheda
09/19/2024 05:50 AM
09/18/2024 04:50 AM
@ShantanuKumar PATCHWITHBODY isn't a HTTP method in saviynt