absent_users()
Ermittelt alle Benutzer einer Workflow-Organisation, die als abwesend gemeldet sind,
über wfm.GetAbsentUsers.
1. Signatur
-
Sync
-
Async
ecm.workflow.absent_users(organisation_id: str) -> list[str]
await ecm.workflow.absent_users(organisation_id: str) -> list[str]
2. Parameter
| Parameter | Typ | Standard | Beschreibung |
|---|---|---|---|
|
|
— |
ID der Workflow-Organisation. Gültige IDs können über |
3. Rückgabewert
Eine Liste von Benutzer-GUIDs (str). Gibt eine leere Liste zurück, wenn keine
Benutzer als abwesend gemeldet sind.
4. Beispiele
4.1. Abwesende Benutzer der aktiven Organisation
-
Sync
-
Async
active_org = next(org for org in ecm.workflow.organisations() if org.active)
absent = ecm.workflow.absent_users(active_org.id)
print(f"{len(absent)} Benutzer abwesend")
for guid in absent:
print(f" {guid}")
orgs = await ecm.workflow.organisations()
active_org = next(org for org in orgs if org.active)
absent = await ecm.workflow.absent_users(active_org.id)
print(f"{len(absent)} Benutzer abwesend")
for guid in absent:
print(f" {guid}")
4.2. Mit Benutzerdetails kombinieren
-
Sync
-
Async
active_org = next(org for org in ecm.workflow.organisations() if org.active)
absent_guids = ecm.workflow.absent_users(active_org.id)
users = ecm.security.users()
absent_users = [u for u in users if u.guid in absent_guids]
for user in absent_users:
print(f"{user.display_name} ist abwesend")
orgs = await ecm.workflow.organisations()
active_org = next(org for org in orgs if org.active)
absent_guids = await ecm.workflow.absent_users(active_org.id)
users = await ecm.security.users()
absent_users = [u for u in users if u.guid in absent_guids]
for user in absent_users:
print(f"{user.display_name} ist abwesend")
5. Siehe auch
-
organisations() — Workflow-Organisationen abfragen (liefert gültige
organisation_id-Werte) -
users() — Alle Benutzer mit Details abrufen