{"record":{"id":"1c3ef0ed847e644b","repo":"BerriAI/litellm","slug":"only-proxy-admins-can-operation-vector-store-ind","errorCode":null,"errorMessage":"Only proxy admins can {operation} vector store indexes. Contact your LiteLLM administrator.","messagePattern":"Only proxy admins can (.+?) vector store indexes\\. Contact your LiteLLM administrator\\.","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/vector_store_endpoints/utils.py","lineNumber":49,"sourceCode":"    return vector_store\n\n\ndef _is_proxy_admin(user_api_key_dict: UserAPIKeyAuth) -> bool:\n    return (\n        user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN\n        or user_api_key_dict.user_role == LitellmUserRoles.PROXY_ADMIN.value\n    )\n\n\ndef assert_proxy_admin_for_vector_store_index_management(\n    user_api_key_dict: UserAPIKeyAuth,\n    *,\n    operation: Literal[\"create\", \"delete\", \"update\", \"list\"] = \"create\",\n) -> None:\n    \"\"\"Raise 403 unless the caller is a proxy admin.\"\"\"\n    if _is_proxy_admin(user_api_key_dict):\n        return\n    raise HTTPException(\n        status_code=403,\n        detail=(f\"Only proxy admins can {operation} vector store indexes. Contact your LiteLLM administrator.\"),\n    )\n\n\ndef _suffix_after_index_name(request_path: str, index_name: str) -> str | None:\n    \"\"\"Return the path suffix after ``/indexes/{index_name}``, or None if absent.\"\"\"\n    match: Final = re.search(rf\"/indexes/{re.escape(index_name)}(?=$|[/?])\", request_path)\n    if match is None:\n        return None\n    return request_path[match.end() :]\n\n\ndef _is_vector_store_index_lifecycle_request(\n    request_method: str,\n    request_path: str,\n    index_name: str,\n) -> bool:","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/vector_store_endpoints/utils.py#L31-L67","documentation":"Role gate in assert_proxy_admin_for_vector_store_index_management: the caller's user_role is not proxy admin. Creating, deleting, updating, or listing managed vector-store indexes is admin-only; the message names which operation ('{operation}') was attempted so the user can ask their administrator.","triggerScenarios":"Thrown at litellm/proxy/vector_store_endpoints/utils.py:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a proxy admin key for vector store index operations, or ask your LiteLLM administrator."],"exampleFix":null,"handlingStrategy":"validation","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"}