EntryWidgetNumberUsersXDR

Entry widget that returns the number of users that participated in a specified Cortex XDR incident.

python · Cortex XDR by Palo Alto Networks

Source

import demistomock as demisto

incident = demisto.incidents()
data = {
    "Type": 17,
    "ContentsFormat": "number",
    "Contents": {
        "stats": int(incident[0].get("CustomFields", {}).get("xdrusercount", 0)),
        "params": {
            "layout": "horizontal",
            "name": "Users Count",
            "sign": "",
            "colors": {"items": {"#00CD33": {"value": -1}, "#FF9000": {"value": 0}, "#ff1744": {"value": 3}}},
            "type": "above",
        },
    },
}

demisto.results(data)

README

Entry widget that returns the number of users that participated in a specified Cortex XDR incident.

Script Data


Name Description
Script Type python3
Tags dynamic-section
Cortex XSOAR Version 5.0.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.