<?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: SmartTask - Custom Permissions in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/206320#M81300</link>
    <description>&lt;P&gt;In my lab R81.20 I had to made some change in the script to make it works:&lt;/P&gt;
&lt;P&gt;- the script runs local on mgt so no base64 is needed to convert the $1&lt;/P&gt;
&lt;P&gt;-in my env the $1 it's the location of a temp file in the mgt that contain the json output of "show changes" API&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the&amp;nbsp;trigger_json variable can be populated with this command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trigger_json=$(cat $1)&lt;/P&gt;
&lt;P&gt;then there is a problem in the message2 variable output that contains " that corrupts the script output so I've also make this change:&lt;/P&gt;
&lt;P&gt;from&amp;nbsp; &amp;nbsp; m2=${m2//\"/\\\"}&lt;/P&gt;
&lt;P&gt;to&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m2=$(echo "$m2" | sed 's/\"/\'\''/g')&lt;/P&gt;
&lt;P&gt;I've attached my version here. the script can be imported using the script repository import gui from smart console and than you can edit the SmartTask&amp;nbsp; by selecting my script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 16:55:41 GMT</pubDate>
    <dc:creator>Michele_Gullia</dc:creator>
    <dc:date>2024-02-16T16:55:41Z</dc:date>
    <item>
      <title>SmartTask - Custom Permissions</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/77247#M81298</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT size="4"&gt;R80.x Security Management makes team work easier by allowing to configure granular permission profiles, delegate ownership of different Layers to different administrators and more.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT size="4"&gt;Sometimes, we might want to create "per object" permission, such profile can be very useful when we want to outsource parts of the policy or limit admins in team to specific object types.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT size="4"&gt;This SmartTask allows us to further extend the permission profiles by running a custom script (Pre Publish)that ensures that the administrators included in Custom Data "admins" field only modify objects that hold the tag specified in the "allowed tag" field.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT size="4"&gt;You can download the attached SmartTask in txt format and&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/import-smart-task~v1.6%20" target="_blank" rel="noopener"&gt;&lt;SPAN style="background: #F8F8FA;"&gt;import&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;it to your Security Management Server. Right after import, you'll find the SmartTask itself in Manage and Settings &amp;gt; SmartTasks, the script it uses resides in Scripts Repository (Gateways &amp;amp; Servers &amp;gt; Scripts).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cp2.png" style="width: 466px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/4698i3CAD1A6139EEAFCA/image-dimensions/466x505?v=v2" width="466" height="505" role="button" title="cp2.png" alt="cp2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:09:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/77247#M81298</guid>
      <dc:creator>Dima_M</dc:creator>
      <dc:date>2020-03-05T11:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTask - Custom Permissions</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/177719#M81299</link>
      <description>&lt;P&gt;Will it still work in R81.20?&lt;/P&gt;&lt;P&gt;Regardless of whether there is a tag "DMZ" or not, the results of my test can be successfully written to the object&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 07:27:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/177719#M81299</guid>
      <dc:creator>Jarvis_Lin</dc:creator>
      <dc:date>2023-04-08T07:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTask - Custom Permissions</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/206320#M81300</link>
      <description>&lt;P&gt;In my lab R81.20 I had to made some change in the script to make it works:&lt;/P&gt;
&lt;P&gt;- the script runs local on mgt so no base64 is needed to convert the $1&lt;/P&gt;
&lt;P&gt;-in my env the $1 it's the location of a temp file in the mgt that contain the json output of "show changes" API&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the&amp;nbsp;trigger_json variable can be populated with this command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trigger_json=$(cat $1)&lt;/P&gt;
&lt;P&gt;then there is a problem in the message2 variable output that contains " that corrupts the script output so I've also make this change:&lt;/P&gt;
&lt;P&gt;from&amp;nbsp; &amp;nbsp; m2=${m2//\"/\\\"}&lt;/P&gt;
&lt;P&gt;to&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;m2=$(echo "$m2" | sed 's/\"/\'\''/g')&lt;/P&gt;
&lt;P&gt;I've attached my version here. the script can be imported using the script repository import gui from smart console and than you can edit the SmartTask&amp;nbsp; by selecting my script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 16:55:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/SmartTask-Custom-Permissions/m-p/206320#M81300</guid>
      <dc:creator>Michele_Gullia</dc:creator>
      <dc:date>2024-02-16T16:55:41Z</dc:date>
    </item>
  </channel>
</rss>

