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

Remove Account- Delete We dont have Key and Value as Input

kmashwini
Regular Contributor
Regular Contributor

Hi Team ,

, In postman we have only value as input for DELETE . Hence in params I have added value as input but we receive error in log as expecting colon to separate filed name and value. Can you please help  on the below JSON.

JSON

{

    "call": [

        {

            "name": "call1",

            "connection": "acctAuth",

            "url": xxx,

            "httpParams": "{\"${account.accountID}\"}",

            "httpHeaders": {

                "Cookie": "${access_token}",

                "Content-Type": "application/json"

            },

            "httpContentType": "application/json",

            "httpMethod": "DELETE",

            "successResponses": {

                "statusCode": [

                    200, 201, 204

                ]

            },

            "unsuccessResponses": {

                "statusCode": [

                    400, 403, 401, 404, 409, 500, 501

                ]

            }

        }

    ]

}

kmashwini_0-1715070368292.png

 

 

17 REPLIES 17

rushikeshvartak
All-Star
All-Star

change httpMethod to DELETEWITHBODY


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

@rushikeshvartak  I tried with Delete with body also . it is showing error.

{
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https:/xxx/DeleteUser",
"httpParams":"${account.accountID}",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"httpMethod":"DELETEWITHBODY",
"successResponses":{
"statusCode":[
200,
201,
204
]
},
"unsuccessResponses":{
"statusCode":[
400,
403,
401,
404,
409,
500,
501
]
}
}

]

}

kmashwini_0-1716380293975.png

 

Please share postman  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'.

@rushikeshvartak  CUrl command

curl -b cookie.txt -H "content-type: application/json" -H "Accept: application/json" -X DELETE -d "10"

kmashwini
Regular Contributor
Regular Contributor

I have tried even in below way. Still getting error. I have attached logs

{
"name":"call1",
"connection":"acctAuth",
"url":"https://xxx/DeleteUser/${account.accountID}",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"httpMethod":"DELETE",
"successResponses":{
"statusCode":[
200,
201,
204
]
},
"unsuccessResponses":{
"statusCode":[
400,
403,
401,
404,
409,
500,
501
]
}
}

Please share logs

‼️‼️⚠️Keep company-specific private information masked on public forums, such as the name and URL.⚠️‼️‼️


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

Attached logs

Does other task are getting completed such as Add/Remove Access?

Error in logs

"2024-05-22T10:36:55.114+00:00","ecm-worker","rest.RestProvisioningService","quartzScheduler_Worker-7-2sh5m","DEBUG","connection: acctAuth"
"2024-05-22T10:36:55.146+00:00","ecm-worker","rest.RestProvisioningService","quartzScheduler_Worker-7-2sh5m","ERROR","Error in processWebservicecom.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.LinkedHashMap out of VALUE_NUMBER_INT token| at [Source: 24634; line: 1, column: 1]"


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

@rushikeshvartak  Yeah the log which you posted only we are getting for remove account json. Add access is working fine because we have key and value pair. Remove Access we dont have.

kmashwini
Regular Contributor
Regular Contributor

Also attached JSON which all we tried .

SB
Saviynt Employee
Saviynt Employee

It looks like the log data is not complete. Can you use the very 1st JSON you added in this forum post and then run the provisioning. You can refer the below link to analyze the api call data and response in the logs. 

https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Frequently-Asked-Questions.htm


Regards,
Sahil

kmashwini
Regular Contributor
Regular Contributor

@SB I have attached logs for below jSON

{
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https://xxx/DeleteUser",
"httpParams":"{\"${account.accountID}\"}",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"httpMethod":"DELETE",
"successResponses":{
"statusCode":[
200,
201,
204
]
},
"unsuccessResponses":{
"statusCode":[
400,
403,
401,
404,
409,
500,
501
]
}
},
{
"name":"call2",
"connection":"acctAuth",
"url":"https://xxx/Logout",
"httpMethod":"GET",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"successResponses":{
"statusCode":[
200,
201
]
}
}
]
}

 

kmashwini_0-1716810124775.png

 

SB
Saviynt Employee
Saviynt Employee

The logs still don't look right. Can you try with this JSON and run the provisioning job. 

In the logs we need to search for the below highlighted text to ensure we have the right set.

Calling Webservice Url - this will display the Call url with the body being sent from Saviynt.

Got Webservice API Response - this will display the response we get from target.

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xxx/DeleteUser",
"httpParams": "{\"${account.accountID}\"}",
"httpHeaders": {
"Cookie": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "DELETE",
"successResponses": {
"statusCode": [
200,
201,
204
]
},
"unsuccessResponses": {
"statusCode": [
400,
403,
401,
404,
409,
500,
501
]
}
}
]
}


Regards,
Sahil

kmashwini
Regular Contributor
Regular Contributor

@SB  I am not able to get that in logs for remove account , can we connect call and check . It will be better.

Does showlogs = true is enabled ?


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

Yes it is enabled, for create account I can see logs as "

Calling Webservice Url - this will display the Call url with the body being sent from Saviynt.

Got Webservice API Response - this will display the response we get from target." 

For Remove account I am not getting.

Can you share whatever logs you are getting.

 

 


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