Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/11/2024 11:17 AM
Hello,
I need your help in the bellow problem:
- when updating a specific custom property for a user from UI, I have to call an API from a client application that provision a group in that application.
- after the UI update, a rule is triggered that calls a REST connection. I am using updateuserJSON
{
"actions": {
"Update Login": {
"call": [
{
"name": "Update Login",
"callOrder": 0,
"connection": "auth",
"url": "https://mymachine/SaviyntApp/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"scriptname.ps1 \\\"${user.customproperty13}\\\" \\\"${user.customproperty12}\\\" \\\"${user.customproperty10}\\\" \"}",
"httpHeaders": {
"Authorization": "Basic abcd"
},
"httpContentType":"application/x-www-form-urlencoded",
"SuccessResponses":{
"statusCode":[
204,
200,
201,
202,
203
]
},
"unsuccessResponses":{
"odata~dot#error.code":[
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound",
"Authorization_RequestDenied",
"Authentication_Unauthorized",
"404",
"500",
"401",
"302"
]
}
}
]
}
}
}
The task is created correctly in Saviynt, but the provisioning job is failing with no messages in the log viewer.
Can you please let me know if the approach is correct? and what should I modify in the JSOn so I can have some messages in the logs?
Thank you
Solved! Go to Solution.
09/11/2024 11:28 AM
Please share logs in text format
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.⚠️ ‼️‼️Refer https://forums.saviynt.com/t5/help/faqpage/title/WhenNotifyAboutPII
09/11/2024 12:00 PM
Hi @Edith check the connection name it should match the name present in connection json and the user update json.
09/11/2024 01:38 PM
@Edith
Try passing the whole Path where the script is located.
"{\"Script\": \"F:\/scripts\/scriptname.ps1 '${connection.userName}' '${connection.password}' '${user.customproperty13}' '$${user.customproperty12}' '${user.customproperty10}'\"}"
'/' we have to escape with '\' slash.