Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

REST API - CreateAccount call Failing

anandshahgrange
New Contributor III
New Contributor III

CreateAccount call is failing with the following Provisioning Comments.

{"auditDetails":{"CreateAccount":[{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"},{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"},{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}]},"CreateAccount":{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}

Where am I going wrong?

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Share create account json and postman 

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.‼️‼️⚠️


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

anandshahgrange
New Contributor III
New Contributor III

{
"accountIdPath": "CreateAccount.message.userid",
"call": [
{
"name": "CreateAccount",
"connection": "GConnectionMdl",
"url": "https://server/createUserMapping",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpParams": "{ \"UserName\": \"${user.systemUserName}\", \"mUserName\": \"${account}\", \"deptCode\": \"${departmentcode} \"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": "[200,201]"
},
"unsuccessResponses": {
"statusCode": "[400, 404, 500]"
}
}
]
}

There no object with ${account} in rest connector change it to ${accountsObj?.name}

https://docs.saviyntcloud.com/bundle/EIC-Connectors/page/Content/Binding-Variables-for-Provisioning-...


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

anandshahgrange
New Contributor III
New Contributor III

postman request body

{
"UserName": "c-maprus",
"mUserName": "TTTSXK",
"deptCode": "DRYERTA"
}

 

Response:

{
    "status""Success",
    "message""The Network Username created successfully."
}