{"record":{"id":"a6373c9ef05d837f","repo":"BerriAI/litellm","slug":"user-does-not-have-permission-to-call-vector-store-a6373c","errorCode":null,"errorMessage":"User does not have permission to call vector store file endpoint {vector_store_id}. Ask your administrator to add the necessary permissions to your API key/Team.","messagePattern":"User does not have permission to call vector store file endpoint (.+?)\\. Ask your administrator to add the necessary permissions to your API key/Team\\.","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/vector_store_endpoints/utils.py","lineNumber":481,"sourceCode":"\n    if permission_type is None:\n        for endpoint in provider_vector_store_endpoints.get(\"read\", ()):\n            if request.method == endpoint[0] and _does_endpoint_match(endpoint[1], request_route):\n                permission_type = \"read\"\n                break\n\n    if permission_type is None:\n        return None\n\n    has_permission: Final = check_vector_store_permission(\n        index_name=vector_store_id,\n        permission=permission_type,\n        key_metadata=key_metadata,\n        team_metadata=team_metadata,\n    )\n\n    if not has_permission:\n        raise HTTPException(\n            status_code=403,\n            detail=f\"User does not have permission to call vector store file endpoint {vector_store_id}. Ask your administrator to add the necessary permissions to your API key/Team.\",\n        )\n\n    return has_permission\n","sourceCodeStart":463,"sourceCodeEnd":487,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/vector_store_endpoints/utils.py#L463-L487","documentation":"Vector-store file-endpoint permission check: the request matched a read/write file pattern for a vector store, but the caller's key/team metadata lacks the corresponding vector-store file permission. Unlike the index check, unmatched routes return None (allowed); this fires only when an explicit permission is required and absent.","triggerScenarios":"Thrown at litellm/proxy/vector_store_endpoints/utils.py:481 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ask your administrator to add vector store file endpoint permissions to your API key or team."],"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"}