Fix too much account on MS365 access review

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-05-28 14:56:54 -07:00
parent 0e1102e4c4
commit 122bc02a23

View File

@@ -148,6 +148,12 @@ func (d *Microsoft365Driver) ListAccounts(ctx context.Context) ([]AccountRecord,
email = u.UserPrincipalName
}
// Skip accounts without any usable identifier so the access
// review only lists real members, matching the SCIM bridge.
if email == "" {
continue
}
userRoles := rolesByUser[u.ID]
isAdmin := false