From 6d6e12119b884108e6a894f0768b890802a14304 Mon Sep 17 00:00:00 2001 From: hagen-danswer Date: Tue, 10 Dec 2024 14:08:00 -0800 Subject: [PATCH] made external group emails lowercase (#3410) --- backend/ee/danswer/db/external_perm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/ee/danswer/db/external_perm.py b/backend/ee/danswer/db/external_perm.py index 4df635788fc..7121130e3eb 100644 --- a/backend/ee/danswer/db/external_perm.py +++ b/backend/ee/danswer/db/external_perm.py @@ -76,7 +76,7 @@ def replace_user__ext_group_for_cc_pair( new_external_permissions = [] for external_group in group_defs: for user_email in external_group.user_emails: - user_id = email_id_map.get(user_email) + user_id = email_id_map.get(user_email.lower()) if user_id is None: logger.warning( f"User in group {external_group.id}"