BerriAI/litellm · error · HTTPException
Relocating a team to a different organization requires PROXY
Error message
Relocating a team to a different organization requires PROXY_ADMIN or org-admin of the destination org.
What it means
Error "Relocating a team to a different organization requires PROXY_ADMIN or org-admin of the destination org." thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:2058
current_org_id: Final = getattr(existing_team_row, "organization_id", None)
if (
data.organization_id != current_org_id
and user_api_key_dict.user_role != LitellmUserRoles.PROXY_ADMIN.value
):
# Is the caller org_admin of the destination org?
caller_memberships: Final = (
await _org_membership_db(prisma_client).find_many(
where={
"user_id": user_api_key_dict.user_id,
"organization_id": data.organization_id,
"user_role": LitellmUserRoles.ORG_ADMIN.value,
}
)
if user_api_key_dict.user_id
else []
)
if not caller_memberships:
raise HTTPException(
status_code=403,
detail={
"error": (
"Relocating a team to a different organization "
"requires PROXY_ADMIN or org-admin of the "
"destination org."
)
},
)
await fetch_and_validate_organization(
organization_id=data.organization_id,
existing_team_row=existing_team_row,
llm_router=llm_router,
prisma_client=prisma_client,
user_api_key_dict=user_api_key_dict,
)
elif data.organization_id is not None and len(data.organization_id) == 0:View on GitHub (pinned to 77b7c6c40c)
Solutions
- Retry with a PROXY_ADMIN key, or with a key that is org-admin of the destination organization.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:2058 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/af99e584f0e1d30f.
Report an issue: GitHub.