Skip to main content

Report to pre-defined request cancellation plugin

You can specify a plugin to allow the cancellation of requests generated from reports. This is useful, for example, where a request to resolve a rule conflict has been marked as "acceptable" in the past. In this case, the plugin would return an instruction to Bravura Security Fabric to not submit the request.

To configure this plugin, type the plugin’s full name in the REPORT TO PDR REQUEST CANCELLATION PLUGIN field on the Manage the system > Modules> Manage reports (RPT) page.

A sample plugin, report_to_pdr_request_cancellation_plugin.py , is shipped with Bravura Security Fabric in the samples\plugin\ directory.

Requirements

The plugin must be placed in the <instance>\plugin\ directory and runs on the Bravura Security Fabric server. See Writing plugins for general requirements.

Execution points

This plugin is executed whenever the user runs a report and enters required values in the Submit pre-defined requests using report output section.

Input

The following is a sample of the input expected for this plugin:

# KVGROUP-V1.0
   "" "" = {
     "predefinedRequest" = "PDR1"
     "reportId" = "a86318e2-0118-433f-bdf1-22226ce5fbf7"
     "reportType" = "ACCOUNT"
     "sessionid" = "S49f1159d-3d27-4b6d-bcd5-4acd61ba9da4"
     "recipient" "user" = {
         
       "id" = "aatest002"
       "name" = "Celin Elaine Dion"
     }
     "request" "" = {
       "reason" = "Submitted from report Accounts (account.exe) on 3/2/2018 2:52 PM"
       "attribute" "FIRST_NAME" = {
         "value" "" = {
           "value" = "f"
         }
       }
       "attribute" "LAST_NAME" = {
         "value" "" = {
           "value" = "l"
         }
      }
       "resource" "" = {
         "accountID" = "MTLDEV1\\aatest002"
         "accountTarget" = "AD_ACME"
         "operation" = "UPDT"
         "userid" = "aatest002"
       }
     }
     "requester" "user" = {
         
       "id" = "superuser"
         
       "name" = "superuser"
     }
     "similarRequests" "" = {
       "request" "" = { #batch ID of similar request
       }
     }
   } 

Output

The expected KVG from plugin is:

# KVGROUP-V1.0
  "output" "" = {
    "ShouldRequestBeSubmitted" = "1"
    "retval" = "0"
  }