MS365DefenderUserListToTable

comment.

python · Microsoft 365 Defender

Details

IDMS365DefenderUserListToTable
Languagepython
From Version5.5.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagstransformer

README

Script Data


Name Description
Script Type python3
Tags transformer
Cortex XSOAR Version 5.5.0

Inputs


Argument Name Description
value list of users

Outputs


There are no outputs for this script.

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


def count_dict(value):
    if not isinstance(value, str):
        return value
    users = value.split(",")

    return [{"User": user} for user in users]


def main():
    try:
        return_results(count_dict(**demisto.args()))
    except Exception as e:
        return_error(f"Failed to execute MS365DefenderUserListToTable. Error: {str(e)}")


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