- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
09-29-2025 08:47 AM
I have been trying to authenticate to the EPM API via SAML (CyberArk doc link: SAML authentication | CyberArk Docs). I believe I am following all of the steps correctly, right URL, parameters, HTTP method, etc. But for some reason no matter what I keep receiving an error. Does anyone have a working postman collection/code that achieves this?
09-29-2025 10:20 AM
Hi @Ryan Kuczer ,
What is the exact error you’re receiving, and more importantly, how exactly are you generating the SAMLResponse used in the API call body?
Eviatar
09-29-2025 10:44 AM
Hi @Eviatar David ,
Thank you for getting back to me so quickly.
Exact Error: {"StatusCode":401,"Error":"Authentication is required and has failed or has not yet been provided"}
To produce the SAMLResponse, I am using browser dev tools to monitor incoming data after signing in with SAML:
Let me know if any other information is needed please. Thank you again for getting back to me
09-29-2025 11:22 AM
Hi @Ryan Kuczer ,
This error usually indicates an issue with your SAMLResponse, most likely due to the way it was captured from the browser.
If you are using Azure as your IdP, there is an external PowerShell script that can help you obtain the SAMLResponse directly from Azure.
Please note that this is NOT an official CyberArk solution and is neither developed nor supported by CyberArk.
let me know once you’ve tested it and if you were able to authenticate using this method.
Eviatar
09-30-2025 07:20 AM
Hi @Eviatar David ,
Running into an issue with this method as it is automatically logging me in the embedded browser with my workstation's account that is not configured to access the EPM app. Looking for a workaround at the moment will update you.
10-01-2025 07:03 PM
HI @Ryan Kuczer
It suggests that when a PowerShell session or any browser control running on Windows hits a resource configured for IdP, it attempts to pass your current Windows credentials.
Please try to use Use the -DisableAuthPrompt flag or If -DisableAuthPrompt doesn't work, you may need to trick the IdP's login flow to bypass integrated Windows authentication.
Hope it helps !
10-14-2025 08:08 AM
@Malhar Vora - Thank you that does help, however that flag mentioned (-DisableAuthprompt) does not work for the referenced Powershell module in the GitHub Repo as it is a little older. I must download the project from source code and alter it to work with EPM instead of PVWA and build it again.
Can I instead use browser tools to do this instead? I did this initially, but it did not seem to work with the response included from my brower.
10-14-2025 04:33 PM
Hi @Ryan Kuczer
Yes you can use the browser.
Please note token has a time limit. So you must use it almost immediately after capturing it.
Please see the following video
https://youtu.be/pNQUc5WKKWQ?si=ja8xInHNLba5t9Jf
Hope it helps !
10-15-2025 10:43 AM
Hi @Malhar Vora
I appreciate you getting back to me, in the video Joe uses the same GetSamlResponse.exe that is configured for the PVWA. I am trying to initiate SAML auth with CyberArk EPM however, requiring me to rewrite the source code of the project. When I have time I will get to it. Just to recap, so far I have tried using:
Appreciate all the help Malhar!
10-15-2025 11:27 AM
Hi @Ryan Kuczer ,
Is the IDP using Windows Integrated Authentication (Kerberos/NTLM)? If so, the browser automatically sends your Windows credentials without prompting, and i dont think modify the script will help.
Can you tell me what happens when the form opens? Does it:
-Automatically log you in without showing a login form?
-Show a login form but with fields pre-filled?
-Something else?
Eviatar
10-15-2025 12:04 PM
Hi @Eviatar David ,
PowerShell module - Automatically logs me in with the same credentials currently signed in on my machine then denies access. Which does not have access to the CyberArk EPM application.
New Webview2 Exe - Lets me login with the account of my choosing. However it is configured to only capture the response from the PVWA SAML hence the quote in the GitHub Repo: You can also download the pre-built binary. This is built specifically with the CyberArk API in mind, for other apps you will need to download from source and build.
10-15-2025 12:05 PM
It does not show a login for with pre-filled fields, I have not option to stop the process or cancel it.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

