App Report via Export Jobs, Umlaut-Suche, Geräte-Export, Mitglieder entfernen

- App Report: Zahlen per AppInstallStatusAggregate Export Job (ZIP/CSV)
- Geräte-Export: getDeviceInstallStatusReport statt deviceStatuses
- Benutzersuche: ConsistencyLevel+$count für Umlaut-Kompatibilität
- Gruppen: Mitglieder entfernen in modalMembers und Group Explorer (gex)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
marcoandClaude Sonnet 4.6 committed 2026-07-22 07:23:04 +02:00
1 parent 0174ca1036
commit 2f0af6e577
5 files changed
+256 -70

No files matched your search

+5 -2
View File
@@ -194,12 +194,15 @@ function Search-GraphUser {
if ($cfgFields.Count -eq 0) { $cfgFields = @('displayName','userPrincipalName','mail') }
# 1) startswith — schnell, deckt Praefix-Tippen ab (90%+ aller Suchen)
# Bei Umlauten/Nicht-ASCII: ConsistencyLevel + $count erforderlich,
# sonst liefert Graph leere Ergebnisse oder 400.
$hasNonAscii = $term -match '[^\x00-\x7F]'
try {
$sw = [System.Diagnostics.Stopwatch]::StartNew()
$parts = @($cfgFields | ForEach-Object { "startswith($_,'$term')" })
$filter = $parts -join " or "
$uri = "https://graph.microsoft.com/v1.0/users?`$select=$select&`$filter=$([uri]::EscapeDataString($filter))&`$top=25"
$resp = Invoke-MgGraphRequest -Uri $uri -Method GET
$uri = "https://graph.microsoft.com/v1.0/users?`$select=$select&`$filter=$([uri]::EscapeDataString($filter))&`$top=25&`$count=true"
$resp = Invoke-MgGraphRequest -Uri $uri -Method GET -Headers @{ ConsistencyLevel = "eventual" }
$items = @()
if ($resp -and $resp.value) { $items = @($resp.value) }
$sw.Stop()