{"record":{"id":"323ec02b502c6bcc","repo":"BerriAI/litellm","slug":"assigning-team-admins-is-a-premium-feature-you-mu","errorCode":null,"errorMessage":"Assigning team admins is a premium feature. You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/#trial. Pricing: https://www.litellm.ai/#pricing","messagePattern":"Assigning team admins is a premium feature\\. You must be a LiteLLM Enterprise user to use this feature\\. If you have a license please set `LITELLM_LICENSE` in your env\\. Get a 7 day trial key here: https://www\\.litellm\\.ai/#trial\\. Pricing: https://www\\.litellm\\.ai/#pricing","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":3374,"sourceCode":"    http_request: Request,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    [BETA]\n\n    Update team member budgets and team member role\n    \"\"\"\n    from litellm.proxy.proxy_server import premium_user, prisma_client\n\n    if prisma_client is None:\n        raise HTTPException(status_code=500, detail={\"error\": \"No db connected\"})\n\n    if data.team_id is None:\n        raise HTTPException(status_code=400, detail={\"error\": \"No team id passed in\"})\n\n    if data.role == \"admin\" and not premium_user:\n        # exactly the same text your proxy throws for add:\n        raise HTTPException(\n            status_code=400,\n            detail=\"Assigning team admins is a premium feature. You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/#trial. Pricing: https://www.litellm.ai/#pricing\",\n        )\n    if data.user_id is None and data.user_email is None:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": \"Either user_id or user_email needs to be passed in\"},\n        )\n\n    validate_budget_duration(data.budget_duration)\n\n    _existing_team_row: Final = await _team_db(prisma_client).find_unique(where={\"team_id\": data.team_id})\n\n    if _existing_team_row is None:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": f\"Team id={data.team_id} does not exist in db\"},\n        )","sourceCodeStart":3356,"sourceCodeEnd":3392,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L3356-L3392","documentation":"Error \"Assigning team admins is a premium feature. You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/#trial. Pricing: https://www.litellm.ai/#pricing\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:3374 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE to a valid LiteLLM Enterprise license key to enable assigning team admins."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}