From 95705989b28ada458ca4ca955b972a6399716472 Mon Sep 17 00:00:00 2001 From: "l.bourdin" Date: Thu, 9 Apr 2026 12:04:13 +0200 Subject: [PATCH] =?UTF-8?q?S=C3=A9paration=20de=20utilisateur=20et=20utili?= =?UTF-8?q?sateur=20cible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom-teams.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom-teams.py b/custom-teams.py index 2a5b827..f51ea83 100755 --- a/custom-teams.py +++ b/custom-teams.py @@ -212,7 +212,8 @@ class Integration: win = self._get_nested(alert, ("data", "win", "eventdata"), default={}) or {} object_name = win.get("objectName") - self._add_fact(facts, "Utilisateur", win.get("targetUserName") or win.get("subjectUserName")) + self._add_fact(facts, "Utilisateur", win.get("subjectUserName")) + self._add_fact(facts, "Utilisateur cible", win.get("targetUserName")) self._add_fact(facts, "Ordinateur", win.get("workstationName")) self._add_fact(facts, "Event ID", self._get_nested(alert, ("data", "win", "system", "eventID"))) self._add_fact(facts, "Process", win.get("processName"))