11-30-2022 08:56 AM - edited 11-30-2022 08:57 AM
Hi,
We are trying to create exchange mailboxes on a hybrid environment. We also have the script at a location with logging included. However, the create account JSON is throwing error. Can someone please validate if I am passing the file path and the user attributes correctly from Saviynt?
{
"accountIdPath": "accountName",
"responseColsToPropsMap": {},
"call": [{
"name": "call1",
"connection": "userAuth",
"url": "<url>",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"Powershell.exe -File c:\/Scripts\/Exchange_Mailbox.ps1 \\\"${users.customproperty17}\\\"\"}",
"httpHeaders": {
"Authorization": ""
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"response[6].Objectreturned": ["Success"]
},
"unsuccessResponses": {
"response[6].Objectreturned": ["Failure"]
}
}]
}
On the Powershell script this value, that is cp17 gets passed as $samacc=$args[0];
Error :