Fix user delete flow 4

This commit is contained in:
Urtzi Alfaro
2025-08-02 18:38:14 +02:00
parent eedbc2401e
commit 8d1b7c1efb
4 changed files with 7 additions and 53 deletions

View File

@@ -38,6 +38,11 @@ async def get_tenant_members(request: Request, tenant_id: str = Path(...)):
"""Get tenant members"""
return await _proxy_to_tenant_service(request, f"/api/v1/tenants/{tenant_id}/members")
@router.get("/user/{user_id}")
async def get_user_tenants(request: Request, user_id: str = Path(...)):
"""Get all tenant memberships for a user (admin only)"""
return await _proxy_to_tenant_service(request, f"/api/v1/tenants/user/{user_id}")
# ================================================================
# TENANT-SCOPED DATA SERVICE ENDPOINTS
# ================================================================