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

Error code with status code 200

Neeharika008
New Contributor
New Contributor

Hi Experts,

When we request for account and access of group. When the wsretry runs it is getting picked of access task 1st instead of account task and the task is getting completed as the status code for the response is 200 with error code  and error message - "Failed to add user to group. User Rakesh.Jammi@test.com does not exist. Provide a valid userlogin".

Please let us know how can we make the task into pending state if we get this error.

 

Regards,

Neeharika

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

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

Neeharika008
New Contributor
New Contributor

Hi,

Thanks for the response .

Cant we provide in the JSON that if we get the status code as - xyz it should not complete the task

Yes You can https://forums.saviynt.com/t5/identity-governance/rest-connector-how-to-configure-successresponse-pa...


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

Neeharika008
New Contributor
New Contributor

Hi ,

 

Response is this way 

{
    "links": {
        "href": "https://-tests/adduserstogroup",
        "action": "PUT"
    },
    "status": 0,
    "error": null,
    "details": {
        "processed": 1,
        "succeeded": 0,
        "failed": 1,
        "faileditems": [
            {
                "userlogin": "Lova.Gandi@test.com",
                "errorcode": "PMC-031",
                "errormessage": "Failed to add user to group. User Lova.Gandi@test.com does not exist. Provide a valid userlogin."
            }
        ],
        "items": null
    }
}  Tried with this way 

"successResponses": {
"details.failed": "0"
},

"unsuccessResponses": {
"details.failed": "1"

No luck task is getting completed

"successResponses": {
"details[0].succeeded": "1"
}


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

Neeharika008
New Contributor
New Contributor

Hi,

Tried but no luck

"successResponses": {
"details.succeeded": "1"
}


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