<?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 Wazuh SIEM integration with CyberArk ISPSS Audit issue : the client credentials token call returns 400 access_denied &amp;quot;invalid client creds or client not allowed&amp;quot; in Workforce Identity Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409945#M1719</link>
    <description>&lt;P&gt;I was trying to integrate Wazuh SIEM with ISPSS Audit to be able to monitor system activities and receive other logs. I followed the official guide step by step. But now, when i generate the access token via the client-credentials flow, it fails every time with error  400 access_denied  "invalid client creds or client not allowed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already ruled out the obvious causes: the web app ID is correct (a wrong ID returns "unknown app"), the app is configured per the guide (jwtRS256, Client Creds enabled, isp.audit.events:read scope, the service user exists and is linked to the &lt;B&gt;OAuth2 server web app&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this python script for reference : &lt;/P&gt;&lt;CODE&gt;import base64
import json
import os
import sys
import requests
&amp;nbsp;
CLIENT_ID     = os.getenv("CYBERARK_CLIENT_ID",     "")
CLIENT_SECRET = os.getenv("CYBERARK_CLIENT_SECRET", "")
IDENTITY_HOST = os.getenv("CYBERARK_IDENTITY_HOST", "")  # no https://
WEBAPP_ID     = os.getenv("CYBERARK_WEBAPP_ID",     "")
API_HOST      = os.getenv("CYBERARK_API_HOST",      "")  # no https://
API_KEY       = os.getenv("CYBERARK_API_KEY",       "")
&amp;nbsp;
SCOPE = "isp.audit.events:read"
&amp;nbsp;
&amp;nbsp;
def get_token():
    url = f"https://{IDENTITY_HOST}/oauth2/token/{WEBAPP_ID}"
    print(f"POST {url}")
    print(f"  client_id : {CLIENT_ID}")
    print(f"  scope     : {SCOPE}")
&amp;nbsp;
    # CyberArk Identity confidential clients authenticate with HTTP Basic.
    basic = base64.b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}".encode()).decode()
    resp = requests.post(
        url,
        headers={
            "Content-Type": "application/x-www-form-urlencoded",
            "Authorization": f"Basic {basic}",
        },
        data={"grant_type": "client_credentials", "scope": SCOPE},
        timeout=30,
    )
    print(f"  -&amp;gt; HTTP {resp.status_code}")
&amp;nbsp;
    if resp.status_code != 200:
        print(f"  body: {resp.text[:500]}")
        return None
&amp;nbsp;
    token = resp.json().get("access_token")
    print("  access_token acquired.")
&amp;nbsp;
    # Decode the (unverified) JWT payload to check aud/scope/tenant claims.
    try:
        payload = token.split(".")[1]
        payload += "=" * (-len(payload) % 4)
        claims = json.loads(base64.urlsafe_b64decode(payload))
        print(f"  aud       : {claims.get('aud')}  (expect cyberark.isp.audit)")
        print(f"  scope     : {claims.get('scope')}")
        print(f"  tenant_id : {claims.get('tenant_id')}")
    except Exception:
        pass
    return token
&amp;nbsp;
&amp;nbsp;
def test_create_query(token):
    if not API_KEY:
        print("\n(Skipping createQuery: no API key set.)")
        return
    url = f"https://{API_HOST}/api/audits/stream/createQuery"
    print(f"\nPOST {url}")
    payload = {
        "query": {
            "pageSize": 1,
            "selectedFields": ["uuid", "timestamp", "action"],
            "filterModel": {
                "date": {
                    "dateFrom": "2025-01-01 00:00:00",
                    "dateTo": "2025-01-02 00:00:00",
                }
            },
        }
    }
    resp = requests.post(
        url,
        headers={
            "Content-Type": "application/json",
            "Authorization": f"Bearer {token}",
            "x-api-key": API_KEY,
        },
        json=payload,
        timeout=30,
    )
    print(f"  -&amp;gt; HTTP {resp.status_code}")
    if resp.status_code == 200:
        print(f"  cursorRef received: {'cursorRef' in resp.json()}")
        print("  SUCCESS: token + API key both work.")
    else:
        print(f"  body: {resp.text[:500]}")
        if resp.status_code in (401, 403):
            print("  Token was issued but the Audit API rejected it -&amp;gt; check the "
                  "Advanced-tab claim script (aud must be cyberark.isp.audit).")
&amp;nbsp;
&amp;nbsp;
def main():
    if not CLIENT_SECRET:
        sys.exit("Set CLIENT_SECRET (or the CYBERARK_CLIENT_SECRET env var) first.")
    token = get_token()
    if token:
        test_create_query(token)
&amp;nbsp;
&amp;nbsp;
if __name__ == "__main__":
    main()&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2026 09:15:06 GMT</pubDate>
    <dc:creator>ARMoh</dc:creator>
    <dc:date>2026-08-04T09:15:06Z</dc:date>
    <item>
      <title>Wazuh SIEM integration with CyberArk ISPSS Audit issue : the client credentials token call returns 400 access_denied "invalid client creds or client not allowed"</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409945#M1719</link>
      <description>&lt;P&gt;I was trying to integrate Wazuh SIEM with ISPSS Audit to be able to monitor system activities and receive other logs. I followed the official guide step by step. But now, when i generate the access token via the client-credentials flow, it fails every time with error  400 access_denied  "invalid client creds or client not allowed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already ruled out the obvious causes: the web app ID is correct (a wrong ID returns "unknown app"), the app is configured per the guide (jwtRS256, Client Creds enabled, isp.audit.events:read scope, the service user exists and is linked to the &lt;B&gt;OAuth2 server web app&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this python script for reference : &lt;/P&gt;&lt;CODE&gt;import base64
import json
import os
import sys
import requests
&amp;nbsp;
CLIENT_ID     = os.getenv("CYBERARK_CLIENT_ID",     "")
CLIENT_SECRET = os.getenv("CYBERARK_CLIENT_SECRET", "")
IDENTITY_HOST = os.getenv("CYBERARK_IDENTITY_HOST", "")  # no https://
WEBAPP_ID     = os.getenv("CYBERARK_WEBAPP_ID",     "")
API_HOST      = os.getenv("CYBERARK_API_HOST",      "")  # no https://
API_KEY       = os.getenv("CYBERARK_API_KEY",       "")
&amp;nbsp;
SCOPE = "isp.audit.events:read"
&amp;nbsp;
&amp;nbsp;
def get_token():
    url = f"https://{IDENTITY_HOST}/oauth2/token/{WEBAPP_ID}"
    print(f"POST {url}")
    print(f"  client_id : {CLIENT_ID}")
    print(f"  scope     : {SCOPE}")
&amp;nbsp;
    # CyberArk Identity confidential clients authenticate with HTTP Basic.
    basic = base64.b64encode(f"{CLIENT_ID}:{CLIENT_SECRET}".encode()).decode()
    resp = requests.post(
        url,
        headers={
            "Content-Type": "application/x-www-form-urlencoded",
            "Authorization": f"Basic {basic}",
        },
        data={"grant_type": "client_credentials", "scope": SCOPE},
        timeout=30,
    )
    print(f"  -&amp;gt; HTTP {resp.status_code}")
&amp;nbsp;
    if resp.status_code != 200:
        print(f"  body: {resp.text[:500]}")
        return None
&amp;nbsp;
    token = resp.json().get("access_token")
    print("  access_token acquired.")
&amp;nbsp;
    # Decode the (unverified) JWT payload to check aud/scope/tenant claims.
    try:
        payload = token.split(".")[1]
        payload += "=" * (-len(payload) % 4)
        claims = json.loads(base64.urlsafe_b64decode(payload))
        print(f"  aud       : {claims.get('aud')}  (expect cyberark.isp.audit)")
        print(f"  scope     : {claims.get('scope')}")
        print(f"  tenant_id : {claims.get('tenant_id')}")
    except Exception:
        pass
    return token
&amp;nbsp;
&amp;nbsp;
def test_create_query(token):
    if not API_KEY:
        print("\n(Skipping createQuery: no API key set.)")
        return
    url = f"https://{API_HOST}/api/audits/stream/createQuery"
    print(f"\nPOST {url}")
    payload = {
        "query": {
            "pageSize": 1,
            "selectedFields": ["uuid", "timestamp", "action"],
            "filterModel": {
                "date": {
                    "dateFrom": "2025-01-01 00:00:00",
                    "dateTo": "2025-01-02 00:00:00",
                }
            },
        }
    }
    resp = requests.post(
        url,
        headers={
            "Content-Type": "application/json",
            "Authorization": f"Bearer {token}",
            "x-api-key": API_KEY,
        },
        json=payload,
        timeout=30,
    )
    print(f"  -&amp;gt; HTTP {resp.status_code}")
    if resp.status_code == 200:
        print(f"  cursorRef received: {'cursorRef' in resp.json()}")
        print("  SUCCESS: token + API key both work.")
    else:
        print(f"  body: {resp.text[:500]}")
        if resp.status_code in (401, 403):
            print("  Token was issued but the Audit API rejected it -&amp;gt; check the "
                  "Advanced-tab claim script (aud must be cyberark.isp.audit).")
&amp;nbsp;
&amp;nbsp;
def main():
    if not CLIENT_SECRET:
        sys.exit("Set CLIENT_SECRET (or the CYBERARK_CLIENT_SECRET env var) first.")
    token = get_token()
    if token:
        test_create_query(token)
&amp;nbsp;
&amp;nbsp;
if __name__ == "__main__":
    main()&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 09:15:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409945#M1719</guid>
      <dc:creator>ARMoh</dc:creator>
      <dc:date>2026-08-04T09:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wazuh SIEM integration with CyberArk ISPSS Audit issue : the client credentials token call returns 400 access_denied "invalid client creds or client not allowed"</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409946#M1720</link>
      <description>&lt;P&gt;At initial glance this script looks pretty solid. My recommendation would be to reach out to support to create a case for this one. There's some logs we can take a look at that will help identifying why the specific token request failed. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you open the case they may ask for response headers, or testing outside the script in Postman or similar utility. Typically custom scripting is handled by our Professional Services team, but we can troubleshoot the specific calls being made to make sure there's no issues with the endpoints on your tenant. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2026 16:58:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409946#M1720</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-08-04T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wazuh SIEM integration with CyberArk ISPSS Audit issue : the client credentials token call returns 400 access_denied "invalid client creds or client not allowed"</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409947#M1721</link>
      <description>&lt;P&gt;It turns out the exact same credentials (all 6 params identical) are already in use by a QRadar SIEM integration, and QRadar authenticates and receives audits logs fine. So the service user, the OAuth confidential-client flag, permissions and secret are all definitely valid.&lt;/P&gt;&lt;P&gt;That makes me think the 400 "invalid client creds or client not allowed" on my side is because I'm the &lt;I&gt;second&lt;/I&gt; consumer using the same client credentials. The OAuth app has RevokeActiveTokensOnReuseDetection = true, so two SIEMs using the same client_id/secret from different IPs probably looks like token reuse/theft to CyberArk, and my requests get denied while QRadar keeps working.&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is that the right read? For two SIEMs (QRadar + Wazuh) pulling audit events, is the expected setup a &lt;B&gt;separate OAuth service user + separate SIEM integration&lt;/B&gt; for each, rather than sharing one? I assume sharing one set of credentials across two consumers isn't supported here.&lt;/LI&gt;&lt;LI&gt;If I create a second dedicated service user for the Wazuh integration, does that &lt;B&gt;consume an additional PAM / Privilege Cloud license&lt;/B&gt;, or does an OAuth service user for a SIEM integration fall outside the licensed-user count?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2026 06:49:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/wazuh-siem-integration-with-cyberark-ispss-audit-issue-the/m-p/1409947#M1721</guid>
      <dc:creator>ARMoh</dc:creator>
      <dc:date>2026-08-12T06:49:27Z</dc:date>
    </item>
  </channel>
</rss>

