diff --git a/fs2zammad b/fs2zammad index 3861ded..15be118 100755 --- a/fs2zammad +++ b/fs2zammad @@ -92,7 +92,7 @@ def maybe_create_zammad_user(userdata, zammad_session, attr="login", default=Non # The use probably exist already... result = list(zammad.user.search(lowercase_email)) if len(result) >= 1: - user = next(u for u in result if u.email == lowercase_email) + user = next(u for u in result if u['email'] == lowercase_email) USERMAP[lowercase_email] = user else: print(f"Could not create/fetch user {lowercase_email}")