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

Issue in deleting account via rest api

nbillu
New Contributor II
New Contributor II

Hi Team

I am Facing an issue while deleting account

Account is removed/deleted from target API but in saviynt task is still in pending state 

provisioning comment :{"call1":[{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}

Remove account json :
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://..",
"httpMethod": "PUT",
"httpHeaders": {
"accept": "application/json;odata.metadata=minimal;odata.streaming=true",
"X-APIM-FPS": "7462e292-266fd6a3294",
"Ocp-Apim-Subscription-Key": "***",
"Authorization": "${access_token}"
},
"httpParams": "{\"emailAddress\": \"${account.name}\", \"isActive\": \"false\"}",
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
400,
403,
401,
404,
409,
501,
500
]
}
}
]
}

 Please let me know in case you require any further information.

Regards

Navya

6 REPLIES 6

Raghu
All-Star
All-Star

try below if not work once use POST Method nd try

"httpParams": "{\"emailAddress\": \"${account.name}\", \"active\": \"false\"}",


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

nbillu
New Contributor II
New Contributor II

Hi @Raghu 

Post method is not allowed

rushikeshvartak
All-Star
All-Star

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


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

Hi @rushikeshvartak 

sent you the curl command

nbillu_0-1713335089576.png

[This message has been edited by moderator to mask sensitive information. Please make sure to mask any sensitive information before posting in public forums]

{
"call": [{
"name": "call1",
"connection": "acctAuth",
"url": "masked",
"httpMethod": "PUT",
"httpHeaders": {
"accept": "application/json;odata.metadata=minimal;odata.streaming=true",
"UID": "SAM",
"X-APIM-FPS": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Ocp-Apim-Subscription-Key": "9xxxxxxxxxxxxxxx;product=xxxxxxxxxxxxx",
"Authorization":"${access_token}"
},
"httpParams": "{\"emailAddress\": \"${account.name}\", \"isActive\": false}",
"httpContentType": "application/json",
"successResponses": {
"statusCode": [201, 200, 204]
},
"unsuccessResponses": {
"statusCode": [400, 403, 401, 404, 409, 501, 500]
}
}]
}


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

@rushikeshvartak 

I tried with this json there is no change still getting same response as stated earlier.

Regards,

Navya