diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index 6d7bf67d07..061737a35b 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -1693,7 +1693,7 @@ class OAuthManager: log.debug('Using creator ID %s for potential group creation.', creator_id) for group_name in user_oauth_groups: - if group_name not in all_group_names: + if group_name not in all_group_names and not is_in_blocked_groups(group_name, blocked_groups): log.info("Group '%s' not found via OAuth claim. Creating group...", group_name) try: new_group_form = GroupForm(