Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 12:11 AM
Hi, I need to pass the user manager account ID as a parameter for one of the application that I`m onboarding via rest connector, like:
Where the id is field id, and the value is the id value of the manager`s account for the same application.
Kind regards, Marek
Solved! Go to Solution.
08/09/2024 01:10 PM
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 or employee names, Email Addresses, etc.
Also, share json configured in Saviynt
08/12/2024 05:06 AM
Hi Rushikesh,
There is no need to send the json, as I`m not referring to not working property, but rather to the requirements of application and capabilities of saviynt rest connector.
Per my understanding, I don`t have the idea how to get to the application account id of the user manager.
My initial idea was to inject sql query where I`m looking for the account attribute, where the endpointkey = my application and the userkey = ${userManager.username}, but I`m not sure if it might work, or if there is any other method to do it.
Kind regards,
Marek
08/12/2024 05:34 AM
08/12/2024 05:43 AM
Sure, than please see current create account json, but currently it`s missing the exact value of the manager application account id that I need for the progress.
The json:
{
"accountIdPath": "call1.message.data.id",
"call": [
{
"name": "call1",
"connection": "cornerstone",
"url": "application_url",
"httpMethod": "POST",
"httpParams": "{\"address\":{\"city\":\"${user.customproperty3}\",\"country\":\"${user.customproperty7}\"},\"externalId\":\"${user.username}\",\"primaryEmail\":\"${user.email}\",\"settings\":{},\"userName\":\"${user.username}\",\"workerStatus\":{\"active\":true},\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201,
200
]
}
}
]
}
08/12/2024 05:59 AM
${usersManagerObj?.username}
08/12/2024 06:16 AM
Thanks, I`ll try that
08/23/2024 08:06 AM
Hi,
The above solution is not working - it`s returning null (and the manager of a test account is having the account in the target app)
Kind regards,
Marek
08/23/2024 08:27 AM
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .
‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️
08/26/2024 02:30 AM
Hi,
The only thing in the logs is the response which is encrypted:
"call1":{"headers":"lkcB55QUTx6z22UdKWkXbqKzoxvNa9im1A2hK7BvHRdlCjyZsyrs9XNsIjYYeueyycymkQLVSm+z/p/SByX6LwlJTsXcRpUK7ycIcblaeDE3nmIugGoP1kL+UMwB05ieWtzs8GbC7fqP8LHSYr6FvcwvTpt7wk2IZHPrfxg4u1lAkl7By6UFN6j8CHgiH3m+anAvRIbslG4HHjyB43VRXyw2WINqPNms7LpPa6N0BKVk1LEQ20fEey/k8TyCl8n/Cw7VwMip3CHxSqq8XodZ7Ic0NbIMqEoF6Ia4r8E+LN3DLmuiJo6UFs2+sSonvUEyGXahIT+kL/HmZXbXpQDtx/mUYQfO+cnpbOc2ZUb0th0rnsD6v/F19KP5Ad3U0mU5AWp+ROnwBZNJt8v9Rq4ErX57ZeJqiIA+fMjgA2cwjmLNeVIEdyCeu2Co6+Q2Qe5otbeduvDdDNuRlri3KzAK/jsfjlhjhP13GPIE/MSN85O0NB01EbunjTV8JfTKvsvu3NX98j8Ppp3nPoqSMTp2ni1+OQxNnvNuPBVK+t+st4jrOC9pVaCqzQhk0n6xW+8OCTJxZHJ0xVA/8Dl333xxsMH2v6RFwCUciPyGBO2n1RcWRwLbCwCFoHE9F+1eArXwqWZSRexQxFIRiHM9l4H29AbujgY6XBUrU/duqijZkGFy23ofOKRMD6M3uVJGwSTXPHgOI4sWYKBzJ9sJ3TMBCyMncxDL1FM9kXDcIPfoUCIJT/iNovttehGicxUEzDWtexLqjcXB71KSArXVom1Jww/5m/YPrAG5LPw8Dvsjd9yn73cfgC9ym0uJwnDnpcSzXBQ4/1whurefUR282UuirFZcwQ5LxpE0pFnO7X0iKc7s20/ay0JWiqJYdsaDp9PEVNI8bolbtE+M5mJTuk7aDs6QZ/yyx9KcDCErMChyDyN8n7iWq3uJv4yJKLSa6aLwxgt1ZIxLywQ4Uhp0ciyJshMuEjNdHS7anxu6bM5Y39DWVVz06FmI2aG6jZsQHbHztcL7X+XPNP5Pcs5y+z9zIWt3dhgSJ/kHc6hboHtbFek7oII0OX4460ESKYPlD9KRe/8/0BWh+s7dSgxQNNGIyZOKyvpudBQoEJ0Td3I1QIkEYSS2A1nDP1cp5tlXp73p1IFYxpjzMhHbYHIZRcV55niViZzIlYGnikIkUBXuM+3CFGI46dGeoG7zsV35dW87f39F5oRLuGfo0tXzTH+/wupNNLMZSrxUzZd/XUVZvvMkuywp2Nmpv7HZbwRQnZVr7SDZH779j7oJWWZdO/nvDeRiT1Wo+PL4p+mojQAAYBE=","message":"","statusCode":204,"description":null,"status":"Success"}
No other logs are available and the property in the account is still null:
Kind regards,
Marek
08/26/2024 03:44 AM
I have also tried the:
${ if (managerAccount == null || managerAccount?.accountID == null || managerAccount?.accountID == '' ){''} else {managerAccount?.accountID} }
but still null result
Kind regards,
Marek
08/26/2024 06:31 AM
Please share logs
08/31/2024 12:41 AM
@Marek_Kornik
Can you try these?
${user?.manager?.accountID} or ${usersManagerObj?.accountID}
09/01/2024 10:58 AM
@Marek_Kornik try instead of id use cp value check it working or not
${managerAccount.custompropertyX}
09/18/2024 09:29 AM
This worked:
${ if (managerAccount == null || managerAccount?.accountID == null || managerAccount?.accountID == '' ){''} else {managerAccount?.accountID} }