Create Account JSON for Exchange via REST Connector

AshishDas
Regular Contributor
Regular Contributor

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 :

AshishDas_0-1669827282993.png

0 REPLIES 0