<?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: Adding endpoint list to an AD group in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/413036#M233</link>
    <description>&lt;P&gt;Hey Martin!&lt;/P&gt;&lt;P&gt;I think the part that is creating an issue is the way the list is returning the values.&amp;nbsp; &amp;nbsp;Basically the list can store a chunk of data in almost any format.&amp;nbsp; You can comma separate it or use newlines or whatever you want.&amp;nbsp; You may have to parse the output though.&amp;nbsp; Our commands can usually iterate over lists but it's going to expect something more like a json or python style list being handed to it.&amp;nbsp; Use the Split transformer to break up the output to the command before it processes it.&amp;nbsp; Here's an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.32.16 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34394iA8A753638BCBE4CF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.32.16 AM.png" alt="Screen Shot 2021-06-14 at 10.32.16 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Created the list as a comma separated value&lt;/P&gt;&lt;P&gt;If I try to print it out now you get basically a single string with all of the values.&amp;nbsp; You can tell because our Print statement processed it in one command instead of iterating through each of them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.44.37 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34395i9954DA12C8A199C5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.44.37 AM.png" alt="Screen Shot 2021-06-14 at 10.44.37 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you create a small playbook, add in the command you want to run and use a transformer like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.46.03 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34396i95AF557F46B3602E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.46.03 AM.png" alt="Screen Shot 2021-06-14 at 10.46.03 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Then your output will break up into an actual list and process each item individually.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.47.13 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34397i8012EF47FB2E46E5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.47.13 AM.png" alt="Screen Shot 2021-06-14 at 10.47.13 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I hope that helps!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 17:54:18 GMT</pubDate>
    <dc:creator>DougCouch</dc:creator>
    <dc:date>2021-06-14T17:54:18Z</dc:date>
    <item>
      <title>Adding endpoint list to an AD group</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/406847#M221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently building a new PlayBook and in one part of that PlayBook, I am trying to add computers, in an XSoar List, to a specific AD group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I Created a List that contains 2 endpoints separated with a comma ","&lt;/P&gt;&lt;P&gt;- My Playbook is using the Active Directory Query v2:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;ad-add-to-group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Field "computer-name" is filled with the query referencing my XSoar List:&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;${lists.MyListName}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am facing is that it is not working with multiple values in my list.&amp;nbsp; If only 1 computer name is in the list, I have no problem adding that computer to the specified AD group in my PlayBook.&amp;nbsp; As soon as there is 2 or more value in my list, the task failed.&amp;nbsp; All value in the list is comma "," separated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the full error seen in the War Room:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="row entry-parent"&gt;&lt;DIV class="floated left aligned sixteen wide mobile six wide tablet sixteen wide computer column"&gt;&lt;DIV class="entry-metadata"&gt;&lt;DIV class="entry-task-status semi-bold result error"&gt;&lt;SPAN&gt;Active Directory Query v2 returned an error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="entry-task-name"&gt;&lt;STRONG&gt;&lt;SPAN&gt;#7:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;ad-add-to-group&lt;/DIV&gt;&lt;DIV class="entry-task-command"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Command:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;DIV class="display-parent-entry"&gt;&lt;SPAN class="parent-entry-label ellipsis show-as-link"&gt;!ad-add-to-group computer-name="COMPUTER1,COMPUTER2" group-cn="MyADGroup"&lt;/SPAN&gt;&lt;SPAN class="parent-entry-source ellipsis"&gt;(Active Directory Query v2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="entry-view vertical-strech entry-error"&gt;&lt;DIV class="vertical-strech demisto-data"&gt;&lt;DIV&gt;&lt;SPAN class="entry-task-reason"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Reason&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;DIV class="entry-note-view"&gt;&lt;DIV&gt;&lt;DIV class="entry-text-view"&gt;&lt;SPAN class=""&gt;Could not get full DN for computer with name 'COMPUTER1,COMPUTER2' Last connection result: {"result": 0, "description": "success", "dn": "", "message": "", "referrals": null, "type": "searchResDone"} Last error from LDAP server: None&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 18:59:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/406847#M221</guid>
      <dc:creator>MartinCimone</dc:creator>
      <dc:date>2021-05-14T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding endpoint list to an AD group</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/413036#M233</link>
      <description>&lt;P&gt;Hey Martin!&lt;/P&gt;&lt;P&gt;I think the part that is creating an issue is the way the list is returning the values.&amp;nbsp; &amp;nbsp;Basically the list can store a chunk of data in almost any format.&amp;nbsp; You can comma separate it or use newlines or whatever you want.&amp;nbsp; You may have to parse the output though.&amp;nbsp; Our commands can usually iterate over lists but it's going to expect something more like a json or python style list being handed to it.&amp;nbsp; Use the Split transformer to break up the output to the command before it processes it.&amp;nbsp; Here's an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.32.16 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34394iA8A753638BCBE4CF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.32.16 AM.png" alt="Screen Shot 2021-06-14 at 10.32.16 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Created the list as a comma separated value&lt;/P&gt;&lt;P&gt;If I try to print it out now you get basically a single string with all of the values.&amp;nbsp; You can tell because our Print statement processed it in one command instead of iterating through each of them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.44.37 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34395i9954DA12C8A199C5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.44.37 AM.png" alt="Screen Shot 2021-06-14 at 10.44.37 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you create a small playbook, add in the command you want to run and use a transformer like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.46.03 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34396i95AF557F46B3602E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.46.03 AM.png" alt="Screen Shot 2021-06-14 at 10.46.03 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Then your output will break up into an actual list and process each item individually.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-14 at 10.47.13 AM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34397i8012EF47FB2E46E5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-14 at 10.47.13 AM.png" alt="Screen Shot 2021-06-14 at 10.47.13 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I hope that helps!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:54:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/413036#M233</guid>
      <dc:creator>DougCouch</dc:creator>
      <dc:date>2021-06-14T17:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding endpoint list to an AD group</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/413090#M234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/152909"&gt;@DougCouch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help here.&amp;nbsp; I fixed my problem a couple of weeks ago using the exact same method using a transformer "Split" and using a comma as a delimiter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for having taken the time to help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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="SS.png" style="width: 605px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/34402i66910E3A3807E636/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="SS.png" alt="SS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 20:56:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/adding-endpoint-list-to-an-ad-group/m-p/413090#M234</guid>
      <dc:creator>MartinCimone</dc:creator>
      <dc:date>2021-06-14T20:56:10Z</dc:date>
    </item>
  </channel>
</rss>

