and more in a single search tool across platforms. Read the announcement here. |
01/10/2024 12:14 PM
Hi Team.
We are facing difficulties in integrating on-prem exchange with Saviynt. Please find the details below:
I think the Saviynt app deployment is the issue. We followed all the mentioned steps but might be something incorrect.
Please let me know if you have any ideas or suggestions.
Solved! Go to Solution.
01/10/2024 06:18 PM
https://forums.saviynt.com/t5/identity-governance/mailbox-provisioning-access-denied-error/m-p/38759
01/11/2024 01:18 PM
Thank you, Rushikesh,
We identified the issue. Our folder structure is as below:
When we are giving application path as, <Parent Folder>/Saviynt/WINPS,
We receive the following error-
When we are giving application path, <Parent Folder>/Saviynt/WINPS/Scripts,
It is able to show the directory structure-
But now our WINPS connection fails.
So we had set up REST connector and we are trying to execute the following PS-
"url": "http://10.212.10.11/Saviynt/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"Powershell.exe -File C:\/inetpub\/wwwroot\/Saviynt\/WINPS\/Scripts\/PS\/ExecutePSScript\/SampleSaviyntPrint.ps1 \"}",
but receiving the following error-
Tried to execute the same within machine still same error-
Not sure what is missing. Please let me know if you have any idea..
01/11/2024 07:12 PM
Check from postman
405 Method Not Allowed error code means that your browser has sent an HTTP request (GET, POST, PUT, etc.) that isn't allowed for that specific resource, or URL.
01/11/2024 10:56 PM - edited 01/12/2024 02:03 AM
Hi @rushikeshvartak ,
Hi Tried to hit the URL from postman, and getting same in postman as well.
Do we need to change in config file or changes that we have make??
do we need to create PS and ExecutePSScript folder? Our file structure is below.
C:\inetpub\wwwroot\Saviynt\WINPS\Scripts\PS\ExecutePSScript
Specified path's in Default web site and Saviynt. Please check and let me know if any thing is required
for now we have created a script under "C:\inetpub\wwwroot\Saviynt\WINPS\Scripts\PS\ExecutePSScript" folder.
01/13/2024 06:25 PM
Hi Rushikesh,
I think the problem is with the handler. When we are invoking the REST command, it goes to StaticFileHandler, DefaultDocumentHandler. But these handlers do not support the POST method.
So which handler do we need to configure?
01/14/2024 05:29 PM
Check some related posts
https://forums.saviynt.com/t5/identity-governance/rest-exchange-ps-1-script-not-triggered/m-p/36965
01/15/2024 09:28 PM
Could you please confirm if you have followed the WIN-PS connector guide, and at which point you have observed the issue? Understanding the Integration between EIC and Windows Server (saviyntcloud.com)
Any reason why you are not using WIN-PS connector rather than REST to run the PowerShell script?
Regards,
Dhruv Sharma
01/16/2024 11:45 PM
Please refer the below steps from the connector guide for the 4XX/5XX errors. Review the configuration and confirm. Also, as per the documents, physical path is the local folder path where you deploy the code. Please check and confirm.
Troubleshooting (saviyntcloud.com)
4xx or 5xx error Occurs while Deploying the Saviynt App
Regards,
Dhruv Sharma
01/20/2024 08:00 AM
Thank you, Dhruv and Rushikesh.
Although we are still having some problems, the original issue has been resolved. The problem was following-
1- We need to create PS and ExecutePSScript folders under Saviynt App.
2- Application Path should be set to <Parent>/SaviyntApp/WINPS (If WINPS is present )
3- Even if everything is correct when u try to access https://<IP/HOST>/<APPNAME> it shows resource not found but if you trigger REST API< it should work.
4- Execution Policy should be assigned to RemoteSigned.
Hope it helps others.
01/30/2024 09:56 PM
01/31/2024 07:22 AM
We can close this thread,