If you want to do custom logic to decide whether to send an email, you should be able to do that with a script or webhook using an "After Publish" SmartTask.
Basically, when a SmartTask triggers, it will include a lot of information on the action that happened. For Before/After Publish that includes the admin that made the change and the details of what he changed.
You can see below an example payload from a simple session that created a host "host3" and added it to a rule. You can also see in the JSON the "admin" reference which was the name of my user, which you could use to decide whether to invoke the command to send an email.
If you want to experiment yourself, it's easy to do it with Demo mode. You can create a target URL using a service like RequestBin and set that URL in a SmartTask. After that, triggers will invoke that URL and you can see the data in the RequestBin site.
{
"event":{
"method":"POST",
"path":"/",
"query":{
},
"client_ip":"18.192.124.124",
"url":"https://eocpmrftf4k8fs.m.pipedream.net/",
"headers":{
"host":"eocpmrftf4k8fs.m.pipedream.net",
"content-length":"15230",
"accept":"application/json",
"content-type":"application/json",
"user-agent":"Check Point Security Management Server SmartTask",
"accept-encoding":"gzip,deflate"
},
"body":{
"session":{
"publish-time":{
"iso-8601":"2022-03-10T14:09+0000",
"posix":1646921354432
},
"user-name":"admin",
"domain-info":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"session-name":"admin@10-Mar-22",
"session-description":"My test webhook session",
"published":true,
"session-uid":"5a17b22e-3e24-4038-acb1-34a898dea65e"
},
"operations":{
"modified-objects":[
{
"old-object":{
"destination-negate":false,
"destination":[
{
"nat-settings":{
"auto-rule":false
},
"interfaces":[
],
"comments":"",
"color":"black",
"icon":"Objects/host",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-28T14:32+0000",
"posix":1624890755572
},
"creation-time":{
"iso-8601":"2021-06-28T14:32+0000",
"posix":1624890755572
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"host",
"tags":[
],
"uid":"97c85663-82f1-4cd3-9dbe-b0c6ae31aaf3",
"ipv4-address":"151.20.4.15",
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"Public FTP Server",
"read-only":false
}
],
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-28T14:34+0000",
"posix":1624890845080
},
"creation-time":{
"iso-8601":"2021-06-28T14:34+0000",
"posix":1624890844893
},
"lock":"unlocked",
"last-modifier":"admin"
},
"source":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"type":"access-rule",
"content-direction":"any",
"layer":"2d78c122-64cf-4489-b6af-0548154ae464",
"content":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"enabled":true,
"uid":"34b3fff9-11fd-4121-b21d-65d63356fffd",
"action":{
"uid":"ea28da66-c5ed-11e2-bc66-aa5c6188709b",
"comments":"Apply inline layer in case of rule match",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Inner Layer",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675675220
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675675220
},
"last-modifier":"System"
},
"icon":"ApplicationFirewall/Rulebase",
"type":"Global",
"tags":[
]
},
"track":{
"per-session":false,
"per-connection":false,
"alert":"none",
"enable-firewall-session":false,
"accounting":false,
"type":{
"uid":"29e53e3d-23bf-48fe-b6b1-d59bd88036f9",
"comments":"No tracking.",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"None",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674677
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674677
},
"last-modifier":"System"
},
"icon":"General/globalsNone",
"type":"Track",
"tags":[
]
}
},
"service-resource":"",
"source-negate":false,
"comments":"",
"service-negate":false,
"inline-layer":{
"implicit-cleanup-action":"drop",
"shared":false,
"comments":"",
"color":"black",
"content-awareness":true,
"icon":"ApplicationFirewall/rulebase",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-28T14:33+0000",
"posix":1624890806810
},
"creation-time":{
"iso-8601":"2021-06-28T14:33+0000",
"posix":1624890806069
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"access-layer",
"detect-using-x-forward-for":false,
"applications-and-url-filtering":false,
"tags":[
],
"uid":"546535a6-5154-4110-91f8-ec4dd53dc186",
"firewall":true,
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"Public FTP Layer",
"parent-layer":"2d78c122-64cf-4489-b6af-0548154ae464",
"read-only":false,
"mobile-access":false
},
"vpn":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"service":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"content-negate":false,
"name":"Public FTP Access",
"time":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"install-on":[
{
"uid":"6c488338-8eec-4103-ad21-cd461ac2c476",
"comments":"The policy target gateways",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Policy Targets",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674582
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674582
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"Global",
"tags":[
]
}
],
"action-settings":{
},
"custom-fields":{
"field-1":"",
"field-2":"",
"field-3":""
}
},
"new-object":{
"destination-negate":false,
"destination":[
{
"nat-settings":{
"auto-rule":false
},
"interfaces":[
],
"comments":"",
"color":"black",
"icon":"Objects/host",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-28T14:32+0000",
"posix":1624890755572
},
"creation-time":{
"iso-8601":"2021-06-28T14:32+0000",
"posix":1624890755572
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"host",
"tags":[
],
"uid":"97c85663-82f1-4cd3-9dbe-b0c6ae31aaf3",
"ipv4-address":"151.20.4.15",
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"Public FTP Server",
"read-only":false
},
{
"nat-settings":{
"auto-rule":false
},
"interfaces":[
],
"comments":"",
"color":"black",
"icon":"Objects/host",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2022-03-10T14:08+0000",
"posix":1646921307677
},
"creation-time":{
"iso-8601":"2022-03-10T14:08+0000",
"posix":1646921307677
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"host",
"tags":[
],
"uid":"950e13b7-58b7-4ed8-9a18-08a82611b196",
"ipv4-address":"3.3.3.3",
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"host3",
"read-only":false
}
],
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2022-03-10T14:08+0000",
"posix":1646921337330
},
"creation-time":{
"iso-8601":"2021-06-28T14:34+0000",
"posix":1624890844893
},
"lock":"unlocked",
"last-modifier":"admin"
},
"source":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"type":"access-rule",
"content-direction":"any",
"layer":"2d78c122-64cf-4489-b6af-0548154ae464",
"content":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"enabled":true,
"uid":"34b3fff9-11fd-4121-b21d-65d63356fffd",
"action":{
"uid":"ea28da66-c5ed-11e2-bc66-aa5c6188709b",
"comments":"Apply inline layer in case of rule match",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Inner Layer",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675675220
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675675220
},
"last-modifier":"System"
},
"icon":"ApplicationFirewall/Rulebase",
"type":"Global",
"tags":[
]
},
"track":{
"per-session":false,
"per-connection":false,
"alert":"none",
"enable-firewall-session":false,
"accounting":false,
"type":{
"uid":"29e53e3d-23bf-48fe-b6b1-d59bd88036f9",
"comments":"No tracking.",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"None",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674677
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674677
},
"last-modifier":"System"
},
"icon":"General/globalsNone",
"type":"Track",
"tags":[
]
}
},
"service-resource":"",
"source-negate":false,
"comments":"",
"service-negate":false,
"inline-layer":{
"implicit-cleanup-action":"drop",
"shared":false,
"comments":"",
"color":"black",
"content-awareness":true,
"icon":"ApplicationFirewall/rulebase",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-28T14:33+0000",
"posix":1624890806810
},
"creation-time":{
"iso-8601":"2021-06-28T14:33+0000",
"posix":1624890806069
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"access-layer",
"detect-using-x-forward-for":false,
"applications-and-url-filtering":false,
"tags":[
],
"uid":"546535a6-5154-4110-91f8-ec4dd53dc186",
"firewall":true,
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"Public FTP Layer",
"parent-layer":"2d78c122-64cf-4489-b6af-0548154ae464",
"read-only":false,
"mobile-access":false
},
"vpn":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"service":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"content-negate":false,
"name":"Public FTP Access",
"time":[
{
"primaryManagement":false,
"uid":"97aeb369-9aea-11d5-bd16-0090272ccb30",
"comments":null,
"color":"black",
"display-name":"Any",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Any",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675656251
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"CpmiAnyObject",
"tags":[
]
}
],
"install-on":[
{
"uid":"6c488338-8eec-4103-ad21-cd461ac2c476",
"comments":"The policy target gateways",
"color":"none",
"customFields":null,
"domain":{
"uid":"a0bbbc99-adef-4ef8-bb6d-defdefdefdef",
"domain-type":"data domain",
"name":"Check Point Data"
},
"name":"Policy Targets",
"meta-info":{
"creator":"System",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674582
},
"creation-time":{
"iso-8601":"2021-06-26T02:47+0000",
"posix":1624675674582
},
"last-modifier":"System"
},
"icon":"General/globalsAny",
"type":"Global",
"tags":[
]
}
],
"action-settings":{
},
"custom-fields":{
"field-1":"",
"field-2":"",
"field-3":""
}
}
}
],
"deleted-objects":[
],
"added-objects":[
{
"nat-settings":{
"auto-rule":false
},
"interfaces":[
],
"comments":"",
"color":"black",
"icon":"Objects/host",
"meta-info":{
"creator":"admin",
"validation-state":"ok",
"last-modify-time":{
"iso-8601":"2022-03-10T14:08+0000",
"posix":1646921307677
},
"creation-time":{
"iso-8601":"2022-03-10T14:08+0000",
"posix":1646921307677
},
"lock":"unlocked",
"last-modifier":"admin"
},
"type":"host",
"tags":[
],
"uid":"950e13b7-58b7-4ed8-9a18-08a82611b196",
"ipv4-address":"3.3.3.3",
"domain":{
"uid":"41e821a0-3720-11e3-aa6e-0800200c9fde",
"domain-type":"domain",
"name":"SMC User"
},
"name":"host3",
"read-only":true
}
]
}
}
},
"context":{
"id":"26CIuj6U5sLLQBs95BZaDeFKtZu",
"ts":"2022-03-10T14:09:25.934Z",
"pipeline_id":null,
"workflow_id":"p_A2CqGAk",
"deployment_id":"d_4nsvE7y",
"source_type":"COMPONENT",
"verified":false,
"hops":null,
"test":false,
"replay":false,
"owner_id":"u_DKhvnBP",
"platform_version":"3.23.0",
"workflow_name":"RequestBin",
"resume":null,
"trace_id":"26CIuheDgMGneTwundN4TZGhLST"
}
}