Lists
Lists can be created in the Cortex XSOAR UI and modified to be used in scripts and War Rooms. A list can contain items of the same type in any format that would be useful. These are later parsed by, and can be modified by, scripts. For example, you might need to create a list of emails, or a list of known trusted IPs (allow list), etc.
The Lists content item must be in JSON format and can be imported independently or as part of a pack.
#
Create a ListNavigate to Settings > Advanced > Lists.
Click Add a List.
(Multi-tenant) From the dropdown list, select the propagation labels to propagate the list to the relevant tenants.
In the Content Type field, select the way the data is store under the data key in the json file.
To restrict access to the list, in the Permissions section, select the Read Only and Read and edit roles.
Click Save Version.
Exit the list editor.
Export the list by clicking .
#
Add Lists to your ProjectSave your newly created list to the Lists directory in your pack as a JSON file.
- The Lists directory is Packs/<pack_name>/Lists/.
- The name of the file should be list-<list_name>.json.
In the list json file that you created, edit the id field so that it is identical to the name field.
Modify the value in the version field to -1 to prevent user changes.
For example the top of your JSON file should look like this:
#
Example of a Lists JSON FileThe following is an example of a list-checked_integrations.json file.
#
Import a ListYou can import a content item list.
- Navigate to Settings > Advanced > Lists.
- Click .
- Navigate to and select the content list to import.
- Click Open.
For more information about lists, see the Cortex XSOAR Administrator's Guide.