Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/28/2024 01:47 PM
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?
06/28/2024 01:50 PM
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.‼️‼️⚠️
06/28/2024 01:53 PM - edited 06/28/2024 01:54 PM
{
"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]"
}
}
]
}
06/28/2024 04:57 PM
There no object with ${account} in rest connector change it to ${accountsObj?.name}
07/01/2024 07:47 AM
The ${account} is not a Saviynt object. It is a custom attribute on my endpoint.
I changed it to rfaccount. Same with ${departmentcode}
These are custom attributes of my endpoint, not referring to the Saviynt accounts table.
example:
{
"accountIdPath": "CreateAccount.message.userid",
"call": [
{
"name": "CreateAccount",
"connection": "GConnectionMdl",
"url": "https://server/createUserMapping",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpParams": "{ \"UserName\": \"${user.systemUserName}\", \"mUserName\": \"${rfaccount}\", \"deptCode\": \"${departmentcode} \"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": "[200,201]"
},
"unsuccessResponses": {
"statusCode": "[400, 404, 500]"
}
}
]
}
07/01/2024 08:04 AM
Please share dynamic attribute screenshot
06/28/2024 01:56 PM - edited 06/28/2024 01:58 PM
postman request body
{
"UserName": "c-maprus",
"mUserName": "TTTSXK",
"deptCode": "DRYERTA"
}
Response: