NetwitnessSAGetAvailableAssignees

Returns the available NetWitness SA users to be assigned to incidents.

python · RSA NetWitness Security Analytics

Source

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401


def netwitness_im_get_available_assignees():
    resp = demisto.executeCommand("netwitness-im-get-available-assignees", demisto.args())

    if isError(resp[0]):
        result = resp
    else:
        data = demisto.get(resp[0], "Contents.availableAssignees")
        if data:
            data = data if isinstance(data, list) else [data]
            data = [{k: formatCell(row[k]) for k in row} for row in data]
            result = {"ContentsFormat": formats["table"], "Type": entryTypes["note"], "Contents": data}
        else:
            result = "No results."
    return_results(result)


def main():  # pragma: no cover
    try:
        netwitness_im_get_available_assignees()
    except Exception as e:
        err_msg = f"Encountered an error while running the script: [{e}]"
        return_error(err_msg, error=e)


if __name__ in ("__main__", "__builtin__", "builtins"):
    main()

README

Returns the available NetWitness SA users to be assigned to incidents.

Script Data


Name Description
Script Type python
Tags RSA NetWitness Security Analytics

Dependencies


This script uses the following commands and scripts.

  • nw-get-available-assignees

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.