<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Correct format for API-based SAML Authentication in EPM SaaS? in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389036#M5098</link>
    <description>&lt;P&gt;Hi @Matthew Stenger​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you found the solution?&lt;/P&gt;&lt;P&gt;I am in the same situation&lt;/P&gt;&lt;P&gt;Thank you and best regards&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 12:30:34 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2022-11-14T12:30:34Z</dc:date>
    <item>
      <title>Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389035#M5097</link>
      <description>&lt;P&gt;There are numerous examples and scripts for API-based SAML authentication to various apps, but none of these methods appear to work for SaaS EPM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're currently able to retrieve our token using the PS-SAML-Interactive method so many others use on other products, but we're *apparently* unable to send that token back in a way that is accepted, and we get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"StatusCode":401,"Error":"Authentication is required and has failed or has not yet been provided"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation says that the message should be formatted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key: "SAMLResponse"&lt;/P&gt;&lt;P&gt;Value: &amp;lt;IDPToken&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And sent to DISPATCHER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://&amp;lt;EPM_Server&amp;gt;/SAML/Logon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And we are sending as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;application/x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone demonstrate working SAML auth to EPM SaaS?  Our scripts currently use EPM auth, which we reserve for our "Break Glass" account management.  Best practice has all user accounts using SAML.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 16:29:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389035#M5097</guid>
      <dc:creator>mstenger</dc:creator>
      <dc:date>2022-10-25T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389036#M5098</link>
      <description>&lt;P&gt;Hi @Matthew Stenger​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you found the solution?&lt;/P&gt;&lt;P&gt;I am in the same situation&lt;/P&gt;&lt;P&gt;Thank you and best regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 12:30:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389036#M5098</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-11-14T12:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389037#M5099</link>
      <description>&lt;P&gt;I have tested this in my lab and was able to get an Authentication Result from EPM utilizing the following GitHub library for the "Get-SAMLToken" function referenced in the script below. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://github.com/allynl93/PS-SAML-Interactive" href="https://github.com/allynl93/PS-SAML-Interactive" target="_blank"&gt;https://github.com/allynl93/PS-SAML-Interactive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$DispatcherURL = "&lt;A alt="https://login.epm.cyberark.com/SAML/Logon" href="https://login.epm.cyberark.com/SAML/Logon" target="_blank"&gt;https://login.epm.cyberark.com/SAML/Logon&lt;/A&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Method = "POST"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Headers = @{"Content-Type" = "application/x-www-form-urlencoded"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SAMLResponse = Get-SAMLToken -LoginIDP "&lt;A alt="https://YOUR_IDP_Logon_URL" href="https://YOUR_IDP_Logon_URL" target="_blank"&gt;https://YOUR_IDP_Logon_URL&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SAMLAuthBody = @{SAMLResponse= "$SAMLResponse"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SAMLAuthResponse = Invoke-RestMethod -Uri $DispatcherURL -Method $Method -Headers $Headers -Body $SAMLAuthBody&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 17:45:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389037#M5099</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-11-16T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389038#M5100</link>
      <description>&lt;P&gt;We figured this out.  Biggest trick was getting the right response from the right redirected URL in the SAML chain and making sure it's formatted right.  Eric's code above &lt;I&gt;sorta&lt;/I&gt; illustrates that with the YOUR_IDP_Logon_URL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hate to tease, but I've asked the other engineer on my team who did the heavy lifting to make a post explaining all the gotchas one he's fully confident of his code.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just didn't want people to give up hope in the meantime.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 16:41:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389038#M5100</guid>
      <dc:creator>mstenger</dc:creator>
      <dc:date>2022-11-18T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389039#M5101</link>
      <description>&lt;P&gt;Any updates on this ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 11:40:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389039#M5101</guid>
      <dc:creator>M.Minchev396763</dc:creator>
      <dc:date>2024-10-28T11:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389040#M5102</link>
      <description>&lt;P&gt;https://www.youtube.com/watch?v=Sq-cwn_1lvk The link in this guys video for postman is pretty good for testing SAML. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 18:16:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389040#M5102</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2024-10-28T18:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389041#M5103</link>
      <description>&lt;P&gt;https://www.youtube.com/watch?v=Sq-cwn_1lvk The link in this guys video for postman is pretty good for testing SAML. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 18:16:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389041#M5103</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2024-10-28T18:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389042#M5104</link>
      <description>&lt;P&gt;Hi @Milan Minchev​, @Matthew Stenger​, @Eric Vanatta​,&lt;/P&gt;&lt;P&gt;We are facing a similar issue, when we copy the SAML response from ACSU URL from browser tools, the token when passed to &lt;/P&gt;&lt;P&gt;https://login.epm.cyberark.com/SAML/Logon, gives&lt;/P&gt;&lt;P&gt;{"StatusCode":401,"Error":"Authentication is required and has failed or has not yet been provided"}&lt;/P&gt;&lt;P&gt;Could you guide?&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 05:39:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389042#M5104</guid>
      <dc:creator>anishj</dc:creator>
      <dc:date>2025-05-09T05:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389043#M5105</link>
      <description>&lt;P&gt;Hello All, I am getting the same exact issue as anishj. Any update for the SAML auth?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 17:24:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389043#M5105</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-29T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389044#M5106</link>
      <description>&lt;P&gt;@Matthew Stenger​&amp;nbsp;- I don't know if you are still active here and I know its been 3 years since. But was there any update to this potentially.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 17:22:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389044#M5106</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-30T17:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389045#M5107</link>
      <description>&lt;P&gt;Let me try and rehash this again. The first thing you will need is the SAML response from your IDP session. The response should look something like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;&amp;lt;samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_exampleResponseID" Version="2.0" IssueInstant="2024-10-29T20:31:08Z" Destination="https://yourapp.com/saml/SSO/alias/defaultAlias"&amp;gt;
    &amp;lt;saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"&amp;gt;https://idp.example.com&amp;lt;/saml:Issuer&amp;gt;
    &amp;lt;samlp:Status&amp;gt;
        &amp;lt;samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/&amp;gt;
    &amp;lt;/samlp:Status&amp;gt;
    &amp;lt;saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_exampleAssertionID" IssueInstant="2024-10-29T20:31:08Z" Version="2.0"&amp;gt;
        &amp;lt;saml:Issuer&amp;gt;https://idp.example.com&amp;lt;/saml:Issuer&amp;gt;
        &amp;lt;saml:Subject&amp;gt;
            &amp;lt;saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"&amp;gt;user@example.com&amp;lt;/saml:NameID&amp;gt;
            &amp;lt;saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"&amp;gt;
                &amp;lt;saml:SubjectConfirmationData NotOnOrAfter="2024-10-29T21:31:08Z" Recipient="https://yourapp.com/saml/SSO/alias/defaultAlias"/&amp;gt;
            &amp;lt;/saml:SubjectConfirmation&amp;gt;
        &amp;lt;/saml:Subject&amp;gt;
        &amp;lt;saml:Conditions NotBefore="2024-10-29T20:31:08Z" NotOnOrAfter="2024-10-29T21:31:08Z"&amp;gt;
            &amp;lt;saml:AudienceRestriction&amp;gt;
                &amp;lt;saml:Audience&amp;gt;https://yourapp.com&amp;lt;/saml:Audience&amp;gt;
            &amp;lt;/saml:AudienceRestriction&amp;gt;
        &amp;lt;/saml:Conditions&amp;gt;
        &amp;lt;saml:AuthnStatement AuthnInstant="2024-10-29T20:31:08Z" SessionIndex="_exampleSessionIndex"&amp;gt;
            &amp;lt;saml:AuthnContext&amp;gt;
                &amp;lt;saml:AuthnContextClassRef&amp;gt;urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport&amp;lt;/saml:AuthnContextClassRef&amp;gt;
            &amp;lt;/saml:AuthnContext&amp;gt;
        &amp;lt;/saml:AuthnStatement&amp;gt;
    &amp;lt;/saml:Assertion&amp;gt;
&amp;lt;/samlp:Response&amp;gt;&lt;/CODE&gt;&lt;P&gt;Once you have your response captured you will need to convert this response into BASE64: You can do this via PowerShell like this. I would first store the xml data into a variable to make it easier.&lt;/P&gt;&lt;CODE&gt;$xml = @'
&amp;lt;SAML RESPONSE GOES HERE&amp;gt;
'@
&amp;nbsp;
$base64 = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($xml))&lt;/CODE&gt;&lt;P&gt;Once you have the base64 response you might need to convert any html codes for '=' or '+' to the actual '=' and '+' symbols. replace "&amp;amp;#x2b;" with "+".&amp;nbsp;and "&amp;amp;#x3d;" with "=" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then finally in your PowerShell Script you need to create the Body variable for the authentication request. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;$Body = @{SAMLResponse= "$SAMLResponse"}&lt;/CODE&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the full script:&lt;/P&gt;&lt;CODE&gt;# PowerShell script to log in to EPM via SAML using REST API
&amp;nbsp;
# Configuration
$epmServer = "https://&amp;lt;EPM_Server&amp;gt;" 
$xml = @"
&amp;lt;samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="_exampleResponseID" Version="2.0" IssueInstant="2024-10-29T20:31:08Z" Destination="https://yourapp.com/saml/SSO/alias/defaultAlias"&amp;gt;
    &amp;lt;saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"&amp;gt;https://idp.example.com&amp;lt;/saml:Issuer&amp;gt;
    &amp;lt;samlp:Status&amp;gt;
        &amp;lt;samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/&amp;gt;
    &amp;lt;/samlp:Status&amp;gt;
    &amp;lt;saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_exampleAssertionID" IssueInstant="2024-10-29T20:31:08Z" Version="2.0"&amp;gt;
        &amp;lt;saml:Issuer&amp;gt;https://idp.example.com&amp;lt;/saml:Issuer&amp;gt;
        &amp;lt;saml:Subject&amp;gt;
            &amp;lt;saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"&amp;gt;user@example.com&amp;lt;/saml:NameID&amp;gt;
            &amp;lt;saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"&amp;gt;
                &amp;lt;saml:SubjectConfirmationData NotOnOrAfter="2024-10-29T21:31:08Z" Recipient="https://yourapp.com/saml/SSO/alias/defaultAlias"/&amp;gt;
            &amp;lt;/saml:SubjectConfirmation&amp;gt;
        &amp;lt;/saml:Subject&amp;gt;
        &amp;lt;saml:Conditions NotBefore="2024-10-29T20:31:08Z" NotOnOrAfter="2024-10-29T21:31:08Z"&amp;gt;
            &amp;lt;saml:AudienceRestriction&amp;gt;
                &amp;lt;saml:Audience&amp;gt;https://yourapp.com&amp;lt;/saml:Audience&amp;gt;
            &amp;lt;/saml:AudienceRestriction&amp;gt;
        &amp;lt;/saml:Conditions&amp;gt;
        &amp;lt;saml:AuthnStatement AuthnInstant="2024-10-29T20:31:08Z" SessionIndex="_exampleSessionIndex"&amp;gt;
            &amp;lt;saml:AuthnContext&amp;gt;
                &amp;lt;saml:AuthnContextClassRef&amp;gt;urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport&amp;lt;/saml:AuthnContextClassRef&amp;gt;
            &amp;lt;/saml:AuthnContext&amp;gt;
        &amp;lt;/saml:AuthnStatement&amp;gt;
    &amp;lt;/saml:Assertion&amp;gt;
&amp;lt;/samlp:Response&amp;gt;
"@
&amp;nbsp;
# Encode SAML response to Base64
$encodedSamlResponse = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($samlResponse))
&amp;nbsp;
# API endpoint
$uri = "$epmServer/SAML/Logon"
&amp;nbsp;
# Headers
$headers = @{
    "Content-Type" = "application/x-www-form-urlencoded"
}
&amp;nbsp;
# Body
$body = "SAMLResponse=$encodedSamlResponse"
&amp;nbsp;
try {
    # Make POST request
    $response = Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -Body $body
&amp;nbsp;
    # Output response
    $response | ConvertTo-Json
}
catch {
    Write-Error "Error: $_"
}&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 17:37:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389045#M5107</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-30T17:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389046#M5108</link>
      <description>&lt;P&gt;Hi Eric, this helps. But is there any other option if i cannot run the powershell script? I have a account I am logged into on my endpoint that is not provisioned to access EPM via SAML/SSO?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can verify I have the correct token from the browser which is the same after converting from base64 etc... But in postman or python I am still receiving the error {"StatusCode":401,"Error":"Authentication&amp;nbsp;is&amp;nbsp;required&amp;nbsp;and&amp;nbsp;has&amp;nbsp;failed&amp;nbsp;or&amp;nbsp;has&amp;nbsp;not&amp;nbsp;yet&amp;nbsp;been&amp;nbsp;provided"}&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 18:56:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389046#M5108</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-30T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389047#M5109</link>
      <description>&lt;P&gt;To clarify there is no way for me to override the auto-sign in attempt in the embedded browser with the incorrect account. Which gives me an error. Without breaking company policy I cannot run the script correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 19:03:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389047#M5109</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-30T19:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389048#M5110</link>
      <description>&lt;P&gt;The userid in the SAML response must be able to log into EPM.  If you can log in via username and password you should be able to log in via SAML if it is configured in the EPM tenant.  &lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 19:12:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389048#M5110</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-30T19:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correct format for API-based SAML Authentication in EPM SaaS?</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389049#M5111</link>
      <description>&lt;P&gt;Hi Eric, thanks for getting back to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user id logging into SAML is able to log into EPM. The account my PC is signed into when running the script is different, which does not have access to EPM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My account that logins in EPM is able to have a password set even if I login via SSO. But then I am prompted for email verification with the username/password combination, the issue is that I do not have a mailbox attached to this secondary login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is a special case, let me know if there is any way to disable that email verification for myself.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 19:48:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/correct-format-for-api-based-saml-authentication-in-epm-saas/m-p/1389049#M5111</guid>
      <dc:creator>RKuczer</dc:creator>
      <dc:date>2025-09-30T19:48:40Z</dc:date>
    </item>
  </channel>
</rss>

