<?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 Unclear 404 Error from EPM API in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408601#M6307</link>
    <description>&lt;P&gt;I'm trying to retrieve a list of all application groups in a set from the EPM API using Python. Unfortunately, the API is repeatedly throwing a 404 error and I can't tell if its because of an error in the URL I'm using, or if there is some sort of authentication issue going on in the back end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CyberArk Identity for authentication. Code is as follows:&lt;/P&gt;&lt;CODE&gt;       data = {
            'grant_type': 'client_credentials'
        }
            token = requests.post(
                url='https://&amp;lt;ID&amp;gt;.id.cyberark.cloud/oauth2/token/&amp;lt;webapp&amp;gt;',
                data=data,
                auth=(f"{&amp;lt;username&amp;gt;}@cyberark.cloud.&amp;lt;otherID&amp;gt;", &amp;lt;password&amp;gt;)
            )
&amp;nbsp;
        auth_header = 'Bearer ' + token["access_token"]
        self.headers = {
            'authorization': auth_header,
            'content_type': 'application/json'
        }&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm using authorization "Bearer" instead of "Basic" as defined at the bottom of this page: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/authenticate-with-identity-administration.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, I'm successfully able to pull a list of sets using this code:&lt;/P&gt;&lt;CODE&gt;requests.get(
   url=f'{self.url}/epm/api/sets',
   headers=self.headers,
)&lt;/CODE&gt;&lt;P&gt;Following this documentation: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/getsetslist.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to indicate that authentication is working as expected. Using this, I'm able to retrieve set IDs, which I use in the following code:&lt;/P&gt;&lt;CODE&gt;requests.post(
   url=f'{self.url}/EPM/API/Sets/{set_id}/Policies/ApplicationGroups/Search',
   json={}, 
   headers=self.headers
)&lt;/CODE&gt;&lt;P&gt;Following this documentation: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/getappgroups.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what returns a 404.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confused as to why this is happening. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm able to authenticate earlier in the application to pull sets/setIDs. &lt;/LI&gt;&lt;LI&gt;I used those IDs verbatim in the URL for application group request, following the structure indicated in the documentation for the Application Group request. &lt;/LI&gt;&lt;LI&gt;I'm NOT using the dispatch server to pull data, but instead using the server name defined for my instance of EPM.&lt;/LI&gt;&lt;LI&gt;the account in question has full read/write/modify/delete rights to all sets&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any issue with the URL, and authentication seems to be working earlier in the script. Any advice?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 14:26:52 GMT</pubDate>
    <dc:creator>JWurtz</dc:creator>
    <dc:date>2026-03-09T14:26:52Z</dc:date>
    <item>
      <title>Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408601#M6307</link>
      <description>&lt;P&gt;I'm trying to retrieve a list of all application groups in a set from the EPM API using Python. Unfortunately, the API is repeatedly throwing a 404 error and I can't tell if its because of an error in the URL I'm using, or if there is some sort of authentication issue going on in the back end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CyberArk Identity for authentication. Code is as follows:&lt;/P&gt;&lt;CODE&gt;       data = {
            'grant_type': 'client_credentials'
        }
            token = requests.post(
                url='https://&amp;lt;ID&amp;gt;.id.cyberark.cloud/oauth2/token/&amp;lt;webapp&amp;gt;',
                data=data,
                auth=(f"{&amp;lt;username&amp;gt;}@cyberark.cloud.&amp;lt;otherID&amp;gt;", &amp;lt;password&amp;gt;)
            )
&amp;nbsp;
        auth_header = 'Bearer ' + token["access_token"]
        self.headers = {
            'authorization': auth_header,
            'content_type': 'application/json'
        }&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm using authorization "Bearer" instead of "Basic" as defined at the bottom of this page: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/authenticate-with-identity-administration.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, I'm successfully able to pull a list of sets using this code:&lt;/P&gt;&lt;CODE&gt;requests.get(
   url=f'{self.url}/epm/api/sets',
   headers=self.headers,
)&lt;/CODE&gt;&lt;P&gt;Following this documentation: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/getsetslist.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to indicate that authentication is working as expected. Using this, I'm able to retrieve set IDs, which I use in the following code:&lt;/P&gt;&lt;CODE&gt;requests.post(
   url=f'{self.url}/EPM/API/Sets/{set_id}/Policies/ApplicationGroups/Search',
   json={}, 
   headers=self.headers
)&lt;/CODE&gt;&lt;P&gt;Following this documentation: https://docs.cyberark.com/epm/26.3.0/en/content/webservices/getappgroups.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what returns a 404.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confused as to why this is happening. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm able to authenticate earlier in the application to pull sets/setIDs. &lt;/LI&gt;&lt;LI&gt;I used those IDs verbatim in the URL for application group request, following the structure indicated in the documentation for the Application Group request. &lt;/LI&gt;&lt;LI&gt;I'm NOT using the dispatch server to pull data, but instead using the server name defined for my instance of EPM.&lt;/LI&gt;&lt;LI&gt;the account in question has full read/write/modify/delete rights to all sets&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any issue with the URL, and authentication seems to be working earlier in the script. Any advice?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 14:26:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408601#M6307</guid>
      <dc:creator>JWurtz</dc:creator>
      <dc:date>2026-03-09T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408602#M6308</link>
      <description>&lt;P&gt;Is that literally in your URL &lt;/P&gt;&lt;P&gt;Should it be &lt;/P&gt;&lt;P&gt;serviceuser@&amp;lt;your-tenant-domain&amp;gt;   (not@cyberark.cloud.&amp;lt;otherID&amp;gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 15:54:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408602#M6308</guid>
      <dc:creator>RobertS_Cyberark</dc:creator>
      <dc:date>2026-03-09T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408603#M6309</link>
      <description>&lt;P&gt;"cyberark.cloud.#####" is literally in the URL, with the number being a specific string. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you give an example of what the tenant domain would be expected to look like? Is it the 7-digit ID shown displayed the top right corner of Identity? EG: ADF5987 in the "Setting up API Auth" document page? Is it the EPM server name, IE "na101"? Or would it be something else?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 16:26:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408603#M6309</guid>
      <dc:creator>JWurtz</dc:creator>
      <dc:date>2026-03-09T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408604#M6310</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using this exact script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;  url='https://&amp;lt;ID&amp;gt;.id.cyberark.cloud/oauth2/token/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://&amp;lt;ID-subdomain&amp;gt;.id.cyberark.cloud/oauth2/token/&amp;lt;webapp-alias&amp;gt;  where ID-subdomain is used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 16:57:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408604#M6310</guid>
      <dc:creator>RobertS_Cyberark</dc:creator>
      <dc:date>2026-03-09T16:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408605#M6311</link>
      <description>&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;"https://&amp;lt;ID&amp;gt;.id.cyberark.cloud/oauth2/token/&amp;lt;webapp-alias&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where &amp;lt;ID&amp;gt; is the Cyberark Identity id that can be retrieved from the "about" menu in Step 5. of the Identity API documentation&lt;/P&gt;&lt;P&gt;and &amp;lt;webapp-alias&amp;gt; is the alias given to the web app during creation in Identity.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 17:04:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408605#M6311</guid>
      <dc:creator>JWurtz</dc:creator>
      <dc:date>2026-03-09T17:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408606#M6312</link>
      <description>&lt;P&gt;I did verify the tenant domain. In identity, it was set with a different domain name (cloud.cyberark.####) which is why it was properly authenticating with the configuration above. I've swapped it to a normal domain name, but that hasn't had any effect on the 404 errors I've been seeing.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 17:44:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408606#M6312</guid>
      <dc:creator>JWurtz</dc:creator>
      <dc:date>2026-03-09T17:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unclear 404 Error from EPM API</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408607#M6313</link>
      <description>&lt;P&gt;I was able to find a solution. It was a permissions issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite defining a custom permissions group that seemed to have the exact same permissions as Full Control Set Admin, it apparently did not have the same permissions. By swapping the role permissions assignment to Full Control Set Admin, I was able to retrieve the information I was looking for. I don't know if that's an intentional design choice, or if I just made a mistake somewhere along the line. Either way, it's working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help, Robert!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 19:12:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/unclear-404-error-from-epm-api/m-p/1408607#M6313</guid>
      <dc:creator>JWurtz</dc:creator>
      <dc:date>2026-03-09T19:12:50Z</dc:date>
    </item>
  </channel>
</rss>

