We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Connector || Arcus checkmarx || Disable account giving 500 error

Shilpa_B
New Contributor II
New Contributor II
Hi Team,
 
We are trying to disable the account , The API is working from postman but from Saviynt we are getting Error code 500
 
Shilpa_B_0-1700643877784.png

DisableAccountJSON

{
"call": [
{
"name": "DisableAccount",
"connection": "acctAuth",
"showResponse" :true,
"url": "https://${connection.hosturl}/CxRestAPI/auth/Users/51",
"httpMethod": "PUT",
"httpParams":"{\"firstName\":\"Rushikesh\",\"lastName\":\"xxxxx\",\"email\":\"Rushikesh.xxxxx@removed.com\",\"teamIds\": \"[1]\", \"localeId\": \"1\",\"active\":\"true\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"accept": "*/*",
"Content-Type": "application/json-patch+json"

},
"httpContentType": "application/json-patch+json",
"successResponses": {
"statusCode": [
200,
204
]
}
}
]
}

Logs:

Webservice API Response: [headers:[Date: Tue, 07 Nov 2023 06:00:33 GMT, Content-Type: application/json; charset=utf-8, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie=******/6+8MfP3KILOND9bKVive2dhVmLvhqSu7BF+1ZNZ1kRVmt/52RYw1NrvQ8W/YIolgzOCGVBq1ZFTkUfkvqOlJ3hajX56UIyY3lBoolYVgov50WzksOHGaO89; Expires=Tue, 14 Nov 2023 06:00:33 GMT; Path=/, Set-Cookie=******/6+8MfP3KILOND9bKVive2dhVmLvhqSu7BF+1ZNZ1kRVmt/52RYw1NrvQ8W/YIolgzOCGVBq1ZFTkUfkvqOlJ3hajX56UIyY3lBoolYVgov50WzksOHGaO89; Expires=Tue, 14 Nov 2023 06:00:33 GMT; Path=/; SameSite=None; Secure, Cache-Control: no-store, no-cache, Server: Kestrel, X-Frame-Options: sameorigin, Referrer-Policy: strict-origin], responseText:{\"Message\":\"General error occurred. Please contact the system administrator.\"}, cookies:[AWSALB=li8y/6+8MfP3KILOND9bKVive2dhVmLvhqSu7BF+1ZNZ1kRVmt/52RYw1NrvQ8W/YIolgzOCGVBq1ZFTkUfkvqOlJ3hajX56UIyY3lBoolYVgov50WzksOHGaO89; Expires=Tue, 14 Nov 2023 06:00:33 GMT; Path=/, AWSALBCORS=li8y/6+8MfP3KILOND9bKVive2dhVmLvhqSu7BF+1ZNZ1kRVmt/52RYw1NrvQ8W/YIolgzOCGVBq1ZFTkUfkvqOlJ3hajX56UIyY3lBoolYVgov50WzksOHGaO89; Expires=Tue, 14 Nov 2023 06:00:33 GMT; Path=/; SameSite=None; Secure], statusCode:500]
 
 
Please help to resolve
 
Thanks,
Shilpa
 
[This message has been edited by moderator to mask email address]
3 REPLIES 3

SumathiSomala
All-Star
All-Star

@Shilpa_B Are you able to disable the account in postman ?if yes please share the headers and response scree shot

Also check the highlighted fields in JSON

to disable the account "active\":\"false\"

 

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse" :true,
"url": "https://${connection.hosturl}/CxRestAPI/auth/Users/51",
"httpMethod": "PUT",
"httpParams":"{\"firstName\":\"Rushikesh\",\"lastName\":\"xxxxx\",\"email\":\"Rushikesh.xxxxx@removed.com\",\"teamIds\": \"[1]\", \"localeId\": \"1\",\"active\":\"true\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"accept": "*/*",
"Content-Type": "application/json-patch+json"

},
"httpContentType": "application/json-patch+json",
"successResponses": {
"statusCode": [
200,
204
]
}
}
]
}

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

Shilpa_B
New Contributor II
New Contributor II

Hi @SumathiSomala,

Yes I am able to disable account from postman.

Shilpa_B_0-1700725630773.png

Shilpa_B_1-1700725713633.png
[This message has been edited by moderator to mask email address from an image. Please make sure to edit/mask any PII/sensitive info from public forum posts]

rushikeshvartak
All-Star
All-Star

Connection JSON was not generating token 

fixed httpHeaders in connectionJSON resolved the issue.


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.