<?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 Global Protect Client Passcode Modification using API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/global-protect-client-passcode-modification-using-api/m-p/384822#M2549</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the passcode of Global Protect Client. But I am unable to figure out what should be the element which needs to pass in the command. I have tried to set passcode directly using &amp;lt;passcode&amp;gt;54321&amp;lt;/passcode&amp;gt; element. But it is throwing an error "may need to override template object first"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the below sample code&amp;nbsp;Invoke-PaApiConfig -Set -Element "&amp;lt;passcode&amp;gt;54321&amp;lt;/passcode&amp;gt;" -XPath "/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-portal/entry[@name='test_portal']/client-config/configs/entry[@name='gp_config']/agent-ui/passcode"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am using PowerShell to connect the device and do the modification. I am able to get the details with the above Xpath. But I am unable to SET.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with "element" which needs to be used to update passcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I use get I am getting the following response:&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;response&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;status&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;success&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;code&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;19&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="folder"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;result&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;total-count&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;count&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;passcode&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;-=dfedegejongeoIpdeA==&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/passcode&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/result&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Achyuth7916_0-1612890943954.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/29870iE35A011265E73931/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Achyuth7916_0-1612890943954.png" alt="Achyuth7916_0-1612890943954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 17:21:01 GMT</pubDate>
    <dc:creator>Achyuth7916</dc:creator>
    <dc:date>2021-02-09T17:21:01Z</dc:date>
    <item>
      <title>Global Protect Client Passcode Modification using API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/global-protect-client-passcode-modification-using-api/m-p/384822#M2549</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to modify the passcode of Global Protect Client. But I am unable to figure out what should be the element which needs to pass in the command. I have tried to set passcode directly using &amp;lt;passcode&amp;gt;54321&amp;lt;/passcode&amp;gt; element. But it is throwing an error "may need to override template object first"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the below sample code&amp;nbsp;Invoke-PaApiConfig -Set -Element "&amp;lt;passcode&amp;gt;54321&amp;lt;/passcode&amp;gt;" -XPath "/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/global-protect/global-protect-portal/entry[@name='test_portal']/client-config/configs/entry[@name='gp_config']/agent-ui/passcode"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am using PowerShell to connect the device and do the modification. I am able to get the details with the above Xpath. But I am unable to SET.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with "element" which needs to be used to update passcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I use get I am getting the following response:&lt;/P&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;response&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;status&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;success&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;code&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;19&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="folder"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;result&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;total-count&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="html-attribute-name"&gt;count&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;1&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="opened"&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;passcode&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;-=dfedegejongeoIpdeA==&lt;/SPAN&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/passcode&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/result&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="line"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Achyuth7916_0-1612890943954.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/29870iE35A011265E73931/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Achyuth7916_0-1612890943954.png" alt="Achyuth7916_0-1612890943954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 17:21:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/global-protect-client-passcode-modification-using-api/m-p/384822#M2549</guid>
      <dc:creator>Achyuth7916</dc:creator>
      <dc:date>2021-02-09T17:21:01Z</dc:date>
    </item>
  </channel>
</rss>

