MS365DefenderUserListToTable
comment.
- Type
- python
- Pack
- Microsoft365Defender
Source
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()
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.