Skip to main content

CommonServerUserPython

Common user-defined code that is merged into each script and integration during execution. You can use this script to define functions that are used by scripts and integrations. For example you can add a common error function for logging which wraps demisto.error and includes extra environment information. Then you can call this function in custom integrations and scripts.

Note: The code is not merged into system integrations. It is only merged into scripts (custom/system) and custom integrations.

Since this code will get merged into system scripts, it is important that the syntax be compatible both with python 2 and python 3.

Server 6.5 and above: To disable merging the code into system scripts, set the content.oob.script.use_common_user advanced Server parameter to false.

Script Data#


NameDescription
Script Typepython
Tagsinfra, server

Inputs#


There are no inputs for this script.

Outputs#


There are no outputs for this script.