TheHive icon indicating copy to clipboard operation
TheHive copied to clipboard

[Question] List cases by Organizations via API

Open zekicker opened this issue 2 years ago • 0 comments

Request Type

Question

Work Environment

Question Answer
OS version (server) Debian
OS version (client) Windows 11
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 8
TheHive version / git hash 4.1.3-1
Package Type Docker
Database BerlkelyDB
Index type Lucene
Attachments storage Local

Question

Hello,

I want to query cases of 2 organizations via the API to generate a CSV file and create few statistics.

My query uses headers with "X-organisation" tag to target organizations. But I have issues with shared tasks, Concerned cases appear 2 times : within the owning organization and withing the orgnization with shared tasks.

Is it possible to filter cases via API with owning organization and viewing organization or another efficient way ?

Thanks.

zekicker avatar Jan 30 '24 16:01 zekicker