<?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: Disconnect GlobalProtect user not working via API. in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/594570#M5660</link>
    <description>&lt;P&gt;The necessary fields to disconnect a user are the gateway name (including the -N), the username, and the computer name; these are mandatory and must be included. &lt;STRONG&gt;You cannot use just the username&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;This is described in the documentation at the following link (step 2), but it does not clarify that it is truly mandatory.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Aug 2024 15:32:58 GMT</pubDate>
    <dc:creator>Guillermo1234</dc:creator>
    <dc:date>2024-08-10T15:32:58Z</dc:date>
    <item>
      <title>Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470242#M2531</link>
      <description>&lt;P&gt;I am trying to disconnect a global protect user on our gateway via the API. I have tested using the API browser and via a CURL command, but no matter what syntax or variation of the username I use, I get the message &lt;EM&gt;&lt;STRONG&gt;Remote-VPN-Gateway-N joe.bloggs Invalid user name&lt;/STRONG&gt;&lt;/EM&gt;. Below is the syntax I am using with the XML API based on the documentation. Am I missing something fundamental, or have I hit a bug in the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PANOS version I am running is 9.1.12-h3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;request&amp;gt;
    &amp;lt;global-protect-gateway&amp;gt;
        &amp;lt;client-logout&amp;gt;
            &amp;lt;gateway&amp;gt;Remote-VPN-gateway-N&amp;lt;/gateway&amp;gt;
            &amp;lt;user&amp;gt;joe.bloggs&amp;lt;/user&amp;gt;
            &amp;lt;reason&amp;gt;force-logout&amp;lt;/reason&amp;gt;
        &amp;lt;/client-logout&amp;gt;
    &amp;lt;/global-protect-gateway&amp;gt;
&amp;lt;/request&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 17:13:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470242#M2531</guid>
      <dc:creator>Jamesy</dc:creator>
      <dc:date>2022-03-03T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470361#M2533</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/77954"&gt;@Jamesy&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow!&amp;nbsp; The solution is not in the example here -&amp;gt;&amp;nbsp; &lt;A href="https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api" target="_self"&gt;https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api&lt;/A&gt;, but it is in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the &amp;lt;domain&amp;gt;&amp;lt;/domain&amp;gt; parameter.&amp;nbsp; &lt;A href="https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/td-p/232802" target="_blank"&gt;https://live.paloaltonetworks.com/t5/automation-api-discussions/why-can-my-api-call-show-globalprotect-users-but-cannot/td-p/232802&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested this with Postman, and it works!&amp;nbsp; Without the domain, I get the same error as you.&amp;nbsp; Perhaps we both have logged in with AD accounts.&amp;nbsp; My Primary Username under Network &amp;gt; GlobalProtect &amp;gt; Gateways &amp;gt; Remote Users is domain\username.&amp;nbsp; I guess that parameter is required if a domain exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 01:16:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470361#M2533</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2022-03-04T01:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470472#M2536</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I found this article yesterday evening and tried it, but the result is the same, I'm afraid.&lt;BR /&gt;No matter what combination of parameters and no matter the order I place them in, I get the same message. My primary usernames are listed as &lt;A href="mailto:firstname.surname@domain" target="_blank"&gt;firstname.surname@domain&lt;/A&gt;.com which I have tried also.&lt;BR /&gt;&lt;BR /&gt;My new syntax including the domain is below and the error message I get is:&lt;BR /&gt;&lt;STRONG&gt;Remote-Gateway-N domain.com joe.bloggs Invalid user name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;request&amp;gt;&amp;lt;global-protect-gateway&amp;gt;&amp;lt;client-logout&amp;gt;&amp;lt;domain&amp;gt;domain.com&amp;lt;/domain&amp;gt;&amp;lt;gateway&amp;gt;Remote-Gateway-N&amp;lt;/gateway&amp;gt;&amp;lt;user&amp;gt;joe.bloggs&amp;lt;/user&amp;gt;&amp;lt;/client-logout&amp;gt;&amp;lt;/global-protect-gateway&amp;gt;&amp;lt;/request&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 09:24:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470472#M2536</guid>
      <dc:creator>Jamesy</dc:creator>
      <dc:date>2022-03-04T09:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470545#M2537</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/77954"&gt;@Jamesy&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the cmd= that worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;request&amp;gt;&amp;lt;global-protect-gateway&amp;gt;&amp;lt;client-logout&amp;gt;&amp;lt;gateway&amp;gt;Gateway-Name-N&amp;lt;/gateway&amp;gt;&amp;lt;domain&amp;gt;Domain&amp;lt;/domain&amp;gt;&amp;lt;user&amp;gt;Username&amp;lt;/user&amp;gt;&amp;lt;reason&amp;gt;force-logout&amp;lt;/reason&amp;gt;&amp;lt;computer&amp;gt;Computer-Name&amp;lt;/computer&amp;gt;&amp;lt;/client-logout&amp;gt;&amp;lt;/global-protect-gateway&amp;gt;&amp;lt;/request&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;The computer may be required.&amp;nbsp; I got that from the example in the doc.&amp;nbsp; Maybe add it?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;My domain is displayed as domain/username.&amp;nbsp; So, no .com was needed.&amp;nbsp; Maybe try without?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I don't know if order is important.&amp;nbsp; Maybe try the exact order?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 14:37:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470545#M2537</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2022-03-04T14:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470548#M2538</link>
      <description>&lt;P&gt;Hi Tom,&lt;BR /&gt;&lt;BR /&gt;I had tried this variation of the command, but it was the same. I did manage to get it working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran a show command to verify what was being returned, and I noticed that the computer name was in upper case, so I added that, and it worked. The error message, despite mentioning invalid username, has actually nothing to do with the username.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I verified by running again with one letter in lower case as well as a variation with the domain parameter removed, and it failed each time with the invalid username error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems, the gateway name (including the&lt;STRONG&gt; -N&lt;/STRONG&gt;), the &lt;STRONG&gt;username&lt;/STRONG&gt; (mine was in email format user.name@domain.com) and the &lt;STRONG&gt;computer name&lt;/STRONG&gt; are all mandatory case-sensitive params.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think the order of these params is important.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 15:02:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/470548#M2538</guid>
      <dc:creator>Jamesy</dc:creator>
      <dc:date>2022-03-04T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect GlobalProtect user not working via API.</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/594570#M5660</link>
      <description>&lt;P&gt;The necessary fields to disconnect a user are the gateway name (including the -N), the username, and the computer name; these are mandatory and must be included. &lt;STRONG&gt;You cannot use just the username&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;This is described in the documentation at the following link (step 2), but it does not clarify that it is truly mandatory.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-panorama-api/pan-os-xml-api-use-cases/show-and-manage-globalprotect-users-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 15:32:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/disconnect-globalprotect-user-not-working-via-api/m-p/594570#M5660</guid>
      <dc:creator>Guillermo1234</dc:creator>
      <dc:date>2024-08-10T15:32:58Z</dc:date>
    </item>
  </channel>
</rss>

