Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Powershell Script REST connector to create mailbox

PratithShetty
New Contributor III
New Contributor III

Hi All,

I am trying to call a powershell file in the IIS server and getting 404 not found error. Can anyone help? 

I am not able to call from postman on the IIS server too. Not sure what is missing. I have checked the configs based on other forum posts and confirmed that everything is in place.

Here is my createaccount json

 

{
"accountIdPath": "accountName",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xxxxx/SaviyntApp/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"Powershell.exe C:\\\\\\\\inetpub\\\\\\\\wwwroot\\\\\\\\SaviyntApp\\\\\\\\PS\\\\\\\\ExecutePSScript\\\\\\\\TestCommand.ps1 -UserEmail ${user.email}\"}",
"httpHeaders": {
"Authorization": "Basic ________________"
},
"httpContentType": "application/x-www-form-urlencoded",
"SuccessResponses": {
"": [
"Success"
]
},
"unsuccessResponses": {
"responseMessage": [
"\"Failed\"",
"\"Powershell script taking too long Sample input: Invoke-Command -ComputerName \\\"RDCPVW-SAVI01.prim.com\\\" -ScriptBlock {command to execute} -Credential $Cred\""
]
}
}
]
}

 

PratithShetty_0-1718113006289.png

[This message has been edited by moderator to mask sensitive info]

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @PratithShetty,

Are you able validate it in the postman.

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".