<?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: Web API when using add-group permission are set to read-only in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86788#M17415</link>
    <description>&lt;P&gt;Hello PhoneBoy&lt;/P&gt;&lt;P&gt;this is the login command:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -H 'Content-Type: application/json' -X POST -d '{"user":"admin","password":"vpn123","read-only":"false"}' &lt;A href="https://192.168.1.202/web_api/login" target="_blank"&gt;https://192.168.1.202/web_api/login&lt;/A&gt; --insecure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this is the output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"uid" : "efee4f46-c382-4a35-9502-998744d37c0d",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"sid" : "LQvkJy8ItVOLUzYvHr6lIN540O4MTiGw3d9urhufXbw",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"url" : "&lt;A href="https://192.168.1.202:443/web_api" target="_blank"&gt;https://192.168.1.202:443/web_api&lt;/A&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"session-timeout" : 600,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"last-login-was-at" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"posix" : 1587538226636,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"iso-8601" : "2020-04-22T08:50+0200"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"api-server-version" : "1.6"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Login has ben performed with SmartDashboard closed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I check on the SmartDashobard after executing the script, and permission are set to Read-Write for&amp;nbsp;the session.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2020 08:19:44 GMT</pubDate>
    <dc:creator>simonemanto</dc:creator>
    <dc:date>2020-05-30T08:19:44Z</dc:date>
    <item>
      <title>Web API when using add-group permission are set to read-only</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86780#M17413</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to realize a BASH script to automate the creation of object groups, when I perform the add-group, group is not created 'cause it's working in read-only mode.&lt;/P&gt;&lt;P&gt;Here follows my calls (made with cURL):&lt;/P&gt;&lt;P&gt;First, I login to the management server (192.168.1.202):&lt;/P&gt;&lt;P&gt;curl -H 'Content-Type: application/json' -X POST -d '{"user":"admin","password":"vpn123","read-only":"false"}' &lt;A href="https://192.168.1.202/web_api/login" target="_blank"&gt;https://192.168.1.202/web_api/login&lt;/A&gt; --insecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, I check if a specific object group exist or not&lt;/P&gt;&lt;P&gt;curl -H 'Content-Type: application/json' -H 'X-chkp-sid: 3lhppE2MdlMGpEOYUtUZ0Hiek2EsfXS0urk2BUttW1w' -X POST -d '{"name":"group1"}' &lt;A href="https://192.168.1.202/web_api/show-group" target="_blank"&gt;https://192.168.1.202/web_api/show-group&lt;/A&gt; --insecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the object group doesn't exist I create it:&lt;/P&gt;&lt;P&gt;curl -H 'Content-Type: application/json' -H 'X-chkp-sid: 3lhppE2MdlMGpEOYUtUZ0Hiek2EsfXS0urk2BUttW1w' -X POST -d '{"name":"group1","color":"blue","comments":"Group1"}' &lt;A href="https://192.168.1.202/web_api/add-group" target="_blank"&gt;https://192.168.1.202/web_api/add-group&lt;/A&gt; --insecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the response when adding a group, where read-only is set to false&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"uid" : "e5981105-9d77-496a-9863-a85c7be0e01b",&lt;BR /&gt;"name" : "group1",&lt;BR /&gt;"type" : "group",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;"name" : "SMC User",&lt;BR /&gt;"domain-type" : "domain"&lt;BR /&gt;},&lt;BR /&gt;"members" : [ ],&lt;BR /&gt;"groups" : [ ],&lt;BR /&gt;"comments" : "Group1",&lt;BR /&gt;"color" : "blue",&lt;BR /&gt;"icon" : "General/group",&lt;BR /&gt;"tags" : [ ],&lt;BR /&gt;"meta-info" : {&lt;BR /&gt;"lock" : "unlocked",&lt;BR /&gt;"validation-state" : "ok",&lt;BR /&gt;"last-modify-time" : {&lt;BR /&gt;"posix" : 1587536887663,&lt;BR /&gt;"iso-8601" : "2020-04-22T08:28+0200"&lt;BR /&gt;},&lt;BR /&gt;"last-modifier" : "admin",&lt;BR /&gt;"creation-time" : {&lt;BR /&gt;"posix" : 1587536887663,&lt;BR /&gt;"iso-8601" : "2020-04-22T08:28+0200"&lt;BR /&gt;},&lt;BR /&gt;"creator" : "admin"&lt;BR /&gt;},&lt;BR /&gt;"read-only" : true&lt;BR /&gt;}+ exit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 23:24:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86780#M17413</guid>
      <dc:creator>simonemanto</dc:creator>
      <dc:date>2020-05-29T23:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Web API when using add-group permission are set to read-only</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86782#M17414</link>
      <description>What is the JSON output of your login attempt?&lt;BR /&gt;It should tell you if the login has read/write access.&lt;BR /&gt;Note there are a few things that block read/write access, the most common being someone has SmartDashboard open.</description>
      <pubDate>Sat, 30 May 2020 00:01:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86782#M17414</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-05-30T00:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Web API when using add-group permission are set to read-only</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86788#M17415</link>
      <description>&lt;P&gt;Hello PhoneBoy&lt;/P&gt;&lt;P&gt;this is the login command:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -H 'Content-Type: application/json' -X POST -d '{"user":"admin","password":"vpn123","read-only":"false"}' &lt;A href="https://192.168.1.202/web_api/login" target="_blank"&gt;https://192.168.1.202/web_api/login&lt;/A&gt; --insecure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this is the output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"uid" : "efee4f46-c382-4a35-9502-998744d37c0d",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"sid" : "LQvkJy8ItVOLUzYvHr6lIN540O4MTiGw3d9urhufXbw",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"url" : "&lt;A href="https://192.168.1.202:443/web_api" target="_blank"&gt;https://192.168.1.202:443/web_api&lt;/A&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"session-timeout" : 600,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"last-login-was-at" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"posix" : 1587538226636,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;"iso-8601" : "2020-04-22T08:50+0200"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;"api-server-version" : "1.6"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Login has ben performed with SmartDashboard closed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I check on the SmartDashobard after executing the script, and permission are set to Read-Write for&amp;nbsp;the session.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 08:19:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86788#M17415</guid>
      <dc:creator>simonemanto</dc:creator>
      <dc:date>2020-05-30T08:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Web API when using add-group permission are set to read-only</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86816#M17431</link>
      <description>&lt;P&gt;At the end I've solved; it was my fault, I had not perform a call to publish; the new object is visible in SmartDashboard only after publishing the changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it was a "human" issue not API issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 19:34:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Web-API-when-using-add-group-permission-are-set-to-read-only/m-p/86816#M17431</guid>
      <dc:creator>simonemanto</dc:creator>
      <dc:date>2020-05-30T19:34:00Z</dc:date>
    </item>
  </channel>
</rss>

