Details
| ID | generate_profile_id |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | transformer |
README
Generate profileId by user data.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer |
| Cortex XSOAR Version | 6.0.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 title_to_profile_id = {"sales": "123", "marketing": "234", "engineer": "345"} def main(): try: args = demisto.args() user_profile = args.get("value") title = user_profile.get("title") profile_id = title.get(title) return profile_id except Exception as e: demisto.debug(traceback.format_exc()) return_error(str(e)) if __name__ in ["__main__", "builtin", "builtins"]: main()