Skip to content

Commit fe12e98

Browse files
committed
[client] add new operation types for users bg tasks
1 parent 0f8743e commit fe12e98

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,26 @@ def apply_opencti_operation(self, item, operation):
26652665
self.opencti.stix_core_object.ask_enrichments(
26662666
element_id=item["id"], connector_ids=connector_ids
26672667
)
2668+
elif operation == "add_organizations":
2669+
raise ValueError(
2670+
"Not implemented opencti_operation",
2671+
{"operation": operation},
2672+
)
2673+
elif operation == "remove_organizations":
2674+
raise ValueError(
2675+
"Not implemented opencti_operation",
2676+
{"operation": operation},
2677+
)
2678+
elif operation == "add_groups":
2679+
raise ValueError(
2680+
"Not implemented opencti_operation",
2681+
{"operation": operation},
2682+
)
2683+
elif operation == "remove_groups":
2684+
raise ValueError(
2685+
"Not implemented opencti_operation",
2686+
{"operation": operation},
2687+
)
26682688
else:
26692689
raise ValueError(
26702690
"Not supported opencti_operation",

0 commit comments

Comments
 (0)