Skip to main content


This Script is part of the GCP Enrichment and Remediation Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.8.0 and later.

Determine GCP project hierarchy by looking up parent objects until the organization level is reached.

Script Data#

Script Typepython3
Cortex XSOAR Version6.8.0


Argument NameDescription
project_idThe project ID instead of the project number. No need to supply projects/ before the ID (i.e., use `project-name` instead of `projects/project-name` or `projects/111111111111`).


GCPHierarchy.idID of the project/folder/organization object, such as `folders/folder-name`.string
GCPHierarchy.levelLevel in relation to the original project such as project, 1, 2, etc.string
GCPHierarchy.numberNumber of the project/folder/organization object such as `folders/111111111111`.string