<?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: populate Access Role in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99866#M5253</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I managed to write the script, but I've not been able to use the &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt; parameter in set access-role&lt;/P&gt;&lt;P&gt;When in the script I use this line:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$CPDIR/bin/mgmt_cli set access-role name AR_name users.add.source MY-DOM.IT users.add.selection ad_user users.add.base-dn "OU=Utenti-Prova,DC=my-dom,DC=it" -s credentials_file.txt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I got this error:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;message: "Mandatory query parameter 'Directory ID' was not supplied."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I thought that &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt; was the starting point in active directory where to begin the search of what specified in &lt;FONT face="courier new,courier"&gt;users.add.selection, &lt;FONT face="arial,helvetica,sans-serif"&gt;but now I think I'm wrong&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What's &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 15:31:12 GMT</pubDate>
    <dc:creator>Paolo_Francese</dc:creator>
    <dc:date>2020-10-22T15:31:12Z</dc:date>
    <item>
      <title>populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99603#M5251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm more than a novice with CP API and I'm looking for some hints on how to populate an access role taking the list of users from a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:32:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99603#M5251</guid>
      <dc:creator>Paolo_Francese</dc:creator>
      <dc:date>2020-10-20T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99866#M5253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I managed to write the script, but I've not been able to use the &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt; parameter in set access-role&lt;/P&gt;&lt;P&gt;When in the script I use this line:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$CPDIR/bin/mgmt_cli set access-role name AR_name users.add.source MY-DOM.IT users.add.selection ad_user users.add.base-dn "OU=Utenti-Prova,DC=my-dom,DC=it" -s credentials_file.txt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I got this error:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;message: "Mandatory query parameter 'Directory ID' was not supplied."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I thought that &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt; was the starting point in active directory where to begin the search of what specified in &lt;FONT face="courier new,courier"&gt;users.add.selection, &lt;FONT face="arial,helvetica,sans-serif"&gt;but now I think I'm wrong&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;What's &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 15:31:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99866#M5253</guid>
      <dc:creator>Paolo_Francese</dc:creator>
      <dc:date>2020-10-22T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99912#M5254</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;can you provide an example of adding a user?&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-access-role~v1.6.1%20" target="_self"&gt;It's pretty clear from the docs&lt;/A&gt; you can add users to an access role, and it does like some progress was made.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 23:26:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99912#M5254</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-10-22T23:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99957#M5255</link>
      <description>&lt;P&gt;I confirm that I can populate the access role when I do not specify base-dn.&lt;/P&gt;&lt;P&gt;This command works for me:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;$CPDIR/bin/mgmt_cli set access-role name AR_name users.add.source MY-DOM.IT users.add.selection ad_user -s credentials_file.txt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I tried to use &lt;FONT face="courier new,courier"&gt;base-dn&lt;/FONT&gt; hoping to accelerate the search in active directory, that's quite big.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 12:49:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/99957#M5255</guid>
      <dc:creator>Paolo_Francese</dc:creator>
      <dc:date>2020-10-23T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/100096#M5260</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/15009"&gt;@Paolo_Francese&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The command syntax you used is correct and the issue is related to CPM server and not to API.&lt;/P&gt;
&lt;P&gt;Please open ticket to TAC for further assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Roy&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 16:30:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/100096#M5260</guid>
      <dc:creator>chkp-royl</dc:creator>
      <dc:date>2020-10-25T16:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: populate Access Role</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/100120#M5262</link>
      <description>&lt;P&gt;Thanks Roy, now we are using R81EA, in the next few weeks we'll move to GA and if this bug is still there I'll open a TAC.&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 07:48:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/populate-Access-Role/m-p/100120#M5262</guid>
      <dc:creator>Paolo_Francese</dc:creator>
      <dc:date>2020-10-26T07:48:55Z</dc:date>
    </item>
  </channel>
</rss>

