From df17c0b497cb5560382a344895487a816e4a2674 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 13 Feb 2026 17:02:37 -0800 Subject: [PATCH] fix: populate identity fields in proxy admin JWT early-return path When is_proxy_admin is True, the UserAPIKeyAuth early-return now includes user_id, team_id, team_alias, team_metadata, org_id, and end_user_id resolved from the JWT. Previously only user_role and parent_otel_span were set, causing blank Team Name and Internal User in Request Logs UI. --- litellm/proxy/auth/user_api_key_auth.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index ba4e3b42c37..f643f7205bf 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -585,7 +585,20 @@ async def _user_api_key_auth_builder( # noqa: PLR0915 if is_proxy_admin: return UserAPIKeyAuth( + api_key=None, user_role=LitellmUserRoles.PROXY_ADMIN, + user_id=user_id, + team_id=team_id, + team_alias=( + team_object.team_alias + if team_object is not None + else None + ), + team_metadata=team_object.metadata + if team_object is not None + else None, + org_id=org_id, + end_user_id=end_user_id, parent_otel_span=parent_otel_span, )