<?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: Creating an administrator using mgmt_cli in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213593#M40705</link>
    <description>&lt;P&gt;If you are not using the session ID it should publish automatically right after the command is executed.&lt;/P&gt;
&lt;P&gt;So for example from the Check Point Management API Reference guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-administrator~v1.9.1%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-administrator~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this command should also publish:&lt;/P&gt;
&lt;PRE class="code"&gt;mgmt_cli add administrator name "admin" password "secret" must-change-password false email "admin@gmail.com" phone-number "1800-800-800" authentication-method "check point password" permissions-profile "read write all"  --domain 'System Data' --format json&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to restart the API service. It should run properly by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 08:04:11 GMT</pubDate>
    <dc:creator>Tal_Paz-Fridman</dc:creator>
    <dc:date>2024-05-08T08:04:11Z</dc:date>
    <item>
      <title>Creating an administrator using mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213590#M40704</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi! I am looking for a way to create an admin using mgmt_cli.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I already found the Management API documentation, but I can't find the commands to publish the changes.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;To create an administrator with an api key authentication method:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mgmt_cli add administrator name admin authentication-method api key permissions-profile read only all&amp;nbsp; expiration-date never --domain System Data&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;To generate an api key for it:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mgmt_cli add api-key admin-name admin --domain System Data --format json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;To enable the API service: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;EM&gt;mgmt_cli set api-settings accepted-api-calls-from all ip addresses that can be used for gui clients --domain System Data --format json&lt;/EM&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;and after that: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mgmt_cli -r true --domain MDS set api-settings accepted-api-calls-from "All IP addresses" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;api restart &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;api status&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Questions: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is everything right with these commands?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do I still need to run the publish changes command? If yes, how it looks? I found only &lt;SPAN&gt;show last-published-session and&amp;nbsp;purge-published-sessions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;And do I need to run two commands to enable the API service or just "mgmt_cli -r true ..." is enough?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:55:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213590#M40704</guid>
      <dc:creator>kaliuga</dc:creator>
      <dc:date>2024-05-08T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an administrator using mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213593#M40705</link>
      <description>&lt;P&gt;If you are not using the session ID it should publish automatically right after the command is executed.&lt;/P&gt;
&lt;P&gt;So for example from the Check Point Management API Reference guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-administrator~v1.9.1%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-administrator~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this command should also publish:&lt;/P&gt;
&lt;PRE class="code"&gt;mgmt_cli add administrator name "admin" password "secret" must-change-password false email "admin@gmail.com" phone-number "1800-800-800" authentication-method "check point password" permissions-profile "read write all"  --domain 'System Data' --format json&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no need to restart the API service. It should run properly by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:04:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213593#M40705</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2024-05-08T08:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an administrator using mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213648#M40717</link>
      <description>&lt;P&gt;Thats it, what&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;&amp;nbsp;sent. I did it before and does work.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-administrator~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/add-administrator~v1.9.1%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 13:42:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Creating-an-administrator-using-mgmt-cli/m-p/213648#M40717</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-05-08T13:42:27Z</dc:date>
    </item>
  </channel>
</rss>

