<?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 API - Manage Users for VPN access in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315262#M81235</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm currently planing a project which should be able to control the VPN user access via the API.&lt;/P&gt;&lt;P&gt;It should be a simple tool where you just need to click a single button. The tool then activates or deactivates the user for that VPN via the API.&lt;/P&gt;&lt;P&gt;How do i activate/deactivate local user on the PA with the API?&lt;/P&gt;&lt;P&gt;I've already searched through the /api on our 850 but haven't found what i want.&lt;/P&gt;&lt;P&gt;What would be your approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;JustAGuy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 14:02:49 GMT</pubDate>
    <dc:creator>JustAGuy</dc:creator>
    <dc:date>2020-03-09T14:02:49Z</dc:date>
    <item>
      <title>API - Manage Users for VPN access</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315262#M81235</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm currently planing a project which should be able to control the VPN user access via the API.&lt;/P&gt;&lt;P&gt;It should be a simple tool where you just need to click a single button. The tool then activates or deactivates the user for that VPN via the API.&lt;/P&gt;&lt;P&gt;How do i activate/deactivate local user on the PA with the API?&lt;/P&gt;&lt;P&gt;I've already searched through the /api on our 850 but haven't found what i want.&lt;/P&gt;&lt;P&gt;What would be your approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;JustAGuy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:02:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315262#M81235</guid>
      <dc:creator>JustAGuy</dc:creator>
      <dc:date>2020-03-09T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: API - Manage Users for VPN access</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315270#M81236</link>
      <description>&lt;P&gt;That's a great project.&lt;/P&gt;&lt;P&gt;I am just curious. Why wouldn't you use GlobalProtect for VPN?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:38:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315270#M81236</guid>
      <dc:creator>Sailesh_Aryal</dc:creator>
      <dc:date>2020-03-09T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: API - Manage Users for VPN access</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315271#M81237</link>
      <description>&lt;P&gt;The tool should work with different firewall vendors.&lt;/P&gt;&lt;P&gt;One of it is Palo Alto NGFW.&lt;/P&gt;&lt;P&gt;Is there a difference between controlling the global protect users vs. f.e ipsec?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:43:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315271#M81237</guid>
      <dc:creator>JustAGuy</dc:creator>
      <dc:date>2020-03-09T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: API - Manage Users for VPN access</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315454#M81264</link>
      <description>&lt;P&gt;I've finally managed to get the right API command for enabling/disabling local users.&lt;/P&gt;&lt;P&gt;All capitalized words between these chars "&amp;lt;&amp;gt;" need to be adjusted!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First you need to get the apikey with the following request:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#0000FF"&gt;https://&lt;STRONG&gt;&amp;lt;FIREWALL IP&amp;gt;&lt;/STRONG&gt;/api/?type=keygen&amp;amp;user=&lt;STRONG&gt;&amp;lt;USERNAME&amp;gt;&lt;/STRONG&gt;&amp;amp;password=&lt;STRONG&gt;&amp;lt;PASSWORD&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can disable the user via the following:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#0000FF"&gt;https://&lt;STRONG&gt;&amp;lt;FIREWALL IP&amp;gt;&lt;/STRONG&gt;/api/?type=config&amp;amp;action=set&amp;amp;key=&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;PI KEY&amp;gt;&lt;/STRONG&gt;&amp;amp;xpath=/config/shared/local-user-database/user/entry[@name='&lt;STRONG&gt;&amp;lt;LOCAL USERNAME&amp;gt;&lt;/STRONG&gt;']&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;or enable it via this:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#0000FF"&gt;https://&lt;STRONG&gt;&amp;lt;FIREWALL IP&amp;gt;&lt;/STRONG&gt;/api/?type=config&amp;amp;action=set&amp;amp;key=&lt;STRONG&gt;&amp;lt;API KEY&amp;gt;&lt;/STRONG&gt;&amp;amp;xpath=/config/shared/local-user-database/user/entry[@name='&lt;STRONG&gt;&amp;lt;LOCAL USERNAME&amp;gt;&lt;/STRONG&gt;']&amp;amp;element=&amp;lt;disabled&amp;gt;no&amp;lt;/disabled&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly you need to commit your changes:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#0000FF"&gt;https://&lt;STRONG&gt;&amp;lt;FIREWALL&amp;nbsp;IP&amp;gt;&lt;/STRONG&gt;/api/?type=commit&amp;amp;key=&lt;STRONG&gt;&amp;lt;APIKEY&amp;gt;&lt;/STRONG&gt;&amp;amp;cmd=&amp;lt;commit&amp;gt;&amp;lt;description&amp;gt;&lt;STRONG&gt;&amp;lt;YOUR DESCRIPTION&amp;gt;&lt;/STRONG&gt;&amp;lt;/description&amp;gt;&amp;lt;/commit&amp;gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 13:22:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-manage-users-for-vpn-access/m-p/315454#M81264</guid>
      <dc:creator>JustAGuy</dc:creator>
      <dc:date>2020-03-10T13:22:17Z</dc:date>
    </item>
  </channel>
</rss>

