<?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: Add existing local User to existing User Group in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541931#M3371</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/4294"&gt;@JimmyHolland&lt;/a&gt;&amp;nbsp;, Yes!!! You are correct. I just tried `member` and it worked. I tried so many things, I'm not sure how I missed this one. Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 21:49:17 GMT</pubDate>
    <dc:creator>estebanad</dc:creator>
    <dc:date>2023-05-11T21:49:17Z</dc:date>
    <item>
      <title>Add existing local User to existing User Group</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541680#M3369</link>
      <description>&lt;P&gt;Hi all - I've been stuck trying to figure out a way to fix an issue I'm having while running this task in Ansible:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- name: Add existing local User to existing User Group
  paloaltonetworks.panos.panos_type_cmd:
    provider: "{{ provider }}"
    cmd: set
    xpath: |
      /config/devices/entry[@name='localhost.localdomain']
      /vsys/entry[@name='vsys2']/local-user-database
      /user-group/entry[@name='TestGroup']/user
    element: "&amp;lt;user&amp;gt;test_user&amp;lt;/user&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;I'm trying to add an existing user to an existing group locally in the firewall and I keep getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"msg": "set failed, may need to override template object first"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's weird because there aren't templates interfering with this configuration item.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And, to make it weirder, I can do it through the cli running: set vsys vsys4 local-user-database user-group TestGroup user test_user&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any clues or ideas? TIA&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 10:56:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541680#M3369</guid>
      <dc:creator>estebanad</dc:creator>
      <dc:date>2023-05-10T10:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add existing local User to existing User Group</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541823#M3370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/290768"&gt;@estebanad&lt;/a&gt;, I think you need &amp;lt;member&amp;gt; in your element, not &amp;lt;user&amp;gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;element: "&amp;lt;member&amp;gt;test_user&amp;lt;/member&amp;gt;"&lt;/LI-CODE&gt;
&lt;P&gt;In my non-VSYS test PA-Series (so hence a slightly different xpath), this worked:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    - name: Add existing Local User to existing User Group
      paloaltonetworks.panos.panos_type_cmd:
        provider: "{{ device }}"
        cmd: set
        xpath: "/config/shared/local-user-database/user-group/entry[@name='TestGroup']/user"
        element: "&amp;lt;member&amp;gt;test_user&amp;lt;/member&amp;gt;"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:43:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541823#M3370</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-05-11T07:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add existing local User to existing User Group</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541931#M3371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/4294"&gt;@JimmyHolland&lt;/a&gt;&amp;nbsp;, Yes!!! You are correct. I just tried `member` and it worked. I tried so many things, I'm not sure how I missed this one. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 21:49:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/add-existing-local-user-to-existing-user-group/m-p/541931#M3371</guid>
      <dc:creator>estebanad</dc:creator>
      <dc:date>2023-05-11T21:49:17Z</dc:date>
    </item>
  </channel>
</rss>

