Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/30/2022 03:03 AM
Team,
I am working on REST Connector.
To create an account, passing user's basic info in httpParams as shown below in Create Account JSON, But instead of picking the actual value it's passing the binding variable as it is.
JSON:
{
"accountIdPath": "call.message.id",
"responseColsToPropsMap": {
"customproperty5": "call.message.id~#~char ",
"customproperty1": "version~#~char"
},
"call": [
{
"name": "call",
"connection": "userAuth",
"showResponse": true,
"url": "https:URL/api/v2/users",
"httpMethod": "POST",
"httpParams": "{\"name\": \"${user.firstname} ${user.lastname}\",\"email\": \"${user.email}\",\"password\":\"Abcd1234$\",\"divisionId\":\"75558435-5a52-43bf-b8a5-bb703c152b\",\"state\":\"active\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
202
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404,
429,
500,
503
]
}
}
]
}
Here, instead of passing user's firstname and lastname value from Saviynt, it is passing ${user.firstname} ${user.lastname} as it is to the target system. Hence user's account not getting created with actual name rather it name "${user.firstname} ${user.lastname}".
This is very weird behavior, never came across with this type of issue earlier.
Snapshot of Saviynt screen after running reconciliation for this account:
Can anyone please suggest, what could be wrong here? Am I missing anything?
Thanks
Rohit
Solved! Go to Solution.
05/30/2022 10:35 AM
Does your connection name is userAuth?
05/31/2022 12:59 AM
yes, It's userAuth in connection name.
Point to note here: With the same JSON, when values are hardcoded then it is passing the actual hardcoded value. But when trying to capture the value using binding variable it doesn't work!
05/31/2022 02:26 AM
Hi Rohit,
Greetings.
Appreciate your analysis here. Just wanted to check, Does the password demand to have that character '$' ?
Just a wild try, Try out by removing the $ for the password and see if the binding variables are resolving?
Behaviour: Even if any one of the Binding variable is misspelt / misused, none of the binding variables get resolved.
Keep us posted.
05/31/2022 03:54 AM