<?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: Missing Clients in client list in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451564#M8012</link>
    <description>&lt;P&gt;I've encountered the same issues as the OP&lt;BR /&gt;&lt;BR /&gt;Did notice this though&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WillSora_0-1699829691096.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263242i21B6D489E92440F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ticking the box and proceeding with deletion removes the policy. So is there an API Endpoint that can send that instruction/tick?&lt;/P&gt;</description>
    <pubDate>Sun, 12 Nov 2023 22:55:58 GMT</pubDate>
    <dc:creator>WillSora</dc:creator>
    <dc:date>2023-11-12T22:55:58Z</dc:date>
    <item>
      <title>Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451556#M8004</link>
      <description>&lt;P&gt;Hi all, hoping for some help in solving a small mystery. We use Meraki group policies to customize firewall settings and apply VLAN tags, among other things. Right now, I'm using the API to standardize group policies for some networks. I wrote a Python script that removes the current group policies for a network ID I provide it and then it creates the new standard group policies. &lt;/P&gt;&lt;P&gt;The problem I'm running into is that sometimes the removal of the group policy returns a 400 client error, saying basically "You can't delete this group policy because there are N clients assigned to it." So, I thought I'll add a function to my script that gets the list of clients and then checks to see if their policy is set to one of the policies being deleted, and if so, make a put request to change that client's policy to "Normal" (aka no policy). &lt;/P&gt;&lt;P&gt;And this works fine except in a couple of annoying cases where for some reason, certain clients don't show up in the list of clients! I think this happens because we've cloned a few of our networks, and basically that client's mac address was coded to have that group policy on the original network. So basically, I have group policies with clients assigned, but those clients don't exist in the network, so I can't reassign those clients. Hence, I can't remove the group policy. Well, I CAN remove it, manually, but where's the fun in that?&lt;/P&gt;&lt;P&gt;Endpoints for reference:&lt;/P&gt;&lt;P&gt;Client list: &lt;SPAN&gt;/networks/&lt;/SPAN&gt;&lt;STRONG&gt;{networkId}/clients&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Client policy: &lt;SPAN&gt;/networks/&lt;/SPAN&gt;&lt;STRONG&gt;{networkId}/clients/{clientId}&lt;/STRONG&gt;&lt;SPAN&gt;/policy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Group policy: &lt;SPAN&gt;/networks/&lt;/SPAN&gt;&lt;STRONG&gt;{networkId}/groupPolicies/{groupPolicyId}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 21:49:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451556#M8004</guid>
      <dc:creator>BenjaminJ</dc:creator>
      <dc:date>2023-11-02T21:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451557#M8005</link>
      <description>&lt;P&gt;Unfortunately, correct - the API does not allow you to get &lt;STRONG&gt;every&lt;/STRONG&gt; client using a group policy - only recent clients.&lt;/P&gt;&lt;P&gt;You used to be able to list them in the dashboard, but I believe this approach is now broken, and it will only list clients within the timeframe given.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_0-1698976836027.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263238iC8DCE8D29407C84C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe try using this type of filter:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhilipDAth_1-1698976939809.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263240i53DAEFCE0D8E07A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You could also add a filter for Status=Offline to try and only display the older entries.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 02:02:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451557#M8005</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-11-03T02:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451558#M8006</link>
      <description>&lt;P&gt;Are you using proper pagination and proper timestamps ?&lt;/P&gt;&lt;P&gt;Because by default &lt;A href="https://developer.cisco.com/meraki/api/get-network-clients/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api/get-network-clients/ &lt;/A&gt;will only collect clients from the last day and 10 clients per page. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have yet to find a discrepencies between the API and the dashboard. I will triple check tomorrow morning&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 02:44:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451558#M8006</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-11-03T02:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451559#M8007</link>
      <description>&lt;P&gt;I'm setting the amount clients to return as the maximum, 1000. Is there a way to show older clients in the API?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 13:09:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451559#M8007</guid>
      <dc:creator>BenjaminJ</dc:creator>
      <dc:date>2023-11-03T13:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451560#M8008</link>
      <description>&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api/get-network-clients/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api/get-network-clients/&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;timespan (&lt;SPAN class=""&gt;number)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Nov 2023 13:20:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451560#M8008</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-11-03T13:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451561#M8009</link>
      <description>&lt;P&gt;I was able to get them to show up by toggling the "all clients in the dashboard" option in your screenshot. So now I see the devices and MAC addresses. When I click on the client, the Dashboard says "&lt;SPAN&gt;Sorry, we couldn't find that client. Please go back and try again." However, the URL bar appears to have what I think is the client ID: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjaminJ_0-1699017655922.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263241i4132B630601A3EA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I thought I'd made a breakthrough, but unfortunately when I try to use that client ID in my API endpoint URL, it returns a JSON error: &lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"errors": [&lt;BR /&gt;"Client not found"&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 13:22:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451561#M8009</guid>
      <dc:creator>BenjaminJ</dc:creator>
      <dc:date>2023-11-03T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451562#M8010</link>
      <description>&lt;P&gt;Got it. Tried that out, but unfortunately if the client has never connected, it still doesn't show in the client list.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 13:35:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451562#M8010</guid>
      <dc:creator>BenjaminJ</dc:creator>
      <dc:date>2023-11-03T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451563#M8011</link>
      <description>&lt;P&gt;The API does not allow you to fetch clients with a group policy that has never been seen (such as manually created entries).&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 18:53:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451563#M8011</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-11-05T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451564#M8012</link>
      <description>&lt;P&gt;I've encountered the same issues as the OP&lt;BR /&gt;&lt;BR /&gt;Did notice this though&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WillSora_0-1699829691096.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263242i21B6D489E92440F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ticking the box and proceeding with deletion removes the policy. So is there an API Endpoint that can send that instruction/tick?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 22:55:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451564#M8012</guid>
      <dc:creator>WillSora</dc:creator>
      <dc:date>2023-11-12T22:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451565#M8013</link>
      <description>&lt;P&gt;Try this API: &lt;A href="https://developer.cisco.com/meraki/api-v1/get-organization-policies-assignments-by-client/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-organization-policies-assignments-by-client/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And use this query param: &lt;SPAN&gt;includeUndetectedClients&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 23:38:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451565#M8013</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2023-11-13T23:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451566#M8014</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Check out my post &lt;A title="here" href="https://community.meraki.com/t5/Developers-APIs/Missing-Clients-in-client-list/m-p/215395/highlight/true#M9227" target="_self"&gt;here&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 23:39:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451566#M8014</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2023-11-13T23:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Clients in client list</title>
      <link>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451567#M8015</link>
      <description>&lt;P&gt;That worked! Now the last piece is there any way to do a put, post, or delete to get rid of those undetected clients? According to the documentation, get is the only HTTP method allowed for that endpoint, so this might be a dead end anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:19:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/missing-clients-in-client-list/m-p/5451567#M8015</guid>
      <dc:creator>BenjaminJ</dc:creator>
      <dc:date>2023-11-15T20:19:21Z</dc:date>
    </item>
  </channel>
</rss>

