---
title: "Lessons From a Zero-Downtime User-to-Org Migration"
description: "Neon migrated thousands of user accounts and more than 10M projects from user ownership to organization (team) ownership with no downtime, no breaking API changes, no API key rotation and no customer action."
url: "https://swe.quest/articles/lessons-from-a-zero-downtime-user-to-org-migration-870f7d3407eb6aed"
canonical: "https://neon.com/blog/lessons-from-a-zero-downtime-user-to-org-migration"
source: "Neon"
published: "2025-12-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["schema-migrations","multi-tenancy","api-design","identity-auth","payments"]
---

# Lessons From a Zero-Downtime User-to-Org Migration

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-12-22, 8 min read, Case study. Original: [https://neon.com/blog/lessons-from-a-zero-downtime-user-to-org-migration](https://neon.com/blog/lessons-from-a-zero-downtime-user-to-org-migration)

## Summary

Neon migrated thousands of user accounts and more than 10M projects from user ownership to organization (team) ownership with no downtime, no breaking API changes, no API key rotation and no customer action. Backward compatibility came from a "migrated organization" fallback: user-scoped API requests that specify no org resolve to the user's migrated org. Billing moved through a "migrated billing account" that kept the original billing identifier, so invoices and the Stripe and Orb integrations kept working. Users were migrated one at a time over weeks, with ownership resolved at request time so systems tolerated a mixed state. The main advice for SaaS builders is to start with team accounts from day one.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)

## Prerequisites

- SaaS account and billing models ([easy posts on Payments & fintech](https://swe.quest/tags/payments.md?difficulty=easy))
- API key scoping

## Keywords

Neon, Stripe, Orb, Neon Auth

## Related posts

- [Database-per-User Architecture With Isolated Application Environments](https://swe.quest/articles/database-per-user-architecture-with-isolated-application-environments-c298835ab87bcb68.md): Neon · 2024-10-21 · Medium · 7 min read · Multi-tenancy, Schema migrations, System design, PostgreSQL, Deployment
  Deploying a full copy of the application and its own Neon Postgres project per customer is justified mainly by data residency requirements and by letting customers control upgrade timing, not by per-customer customization, which turns each deployment into a separate product.
- [Why We Transitioned to Clerk for Authentication](https://swe.quest/articles/why-we-transitioned-to-clerk-for-authentication-4bd2beb9723f2c95.md): Turso · 2024-08-15 · Medium · 3 min read · Identity & auth
  Turso replaced its homegrown GitHub-only auth with Clerk to add Google login, passkeys, MFA and SSO/SAML without building auth in-house, choosing it over Auth.js, Auth0, Kinde and Hanko mainly for its hosted Account Portal and tight Next.js middleware integration.
- [Database-per-User Architecture With Shared Application Environments: How and Why](https://swe.quest/articles/database-per-user-architecture-with-shared-application-environments-how-and-why-75dc31cab7b5ea77.md): Neon · 2024-10-18 · Medium · 8 min read · Multi-tenancy, PostgreSQL, System design, Schema migrations
  A single shared application environment serving many per-customer Neon Postgres databases keeps deployment simple, but every tenant database must stay at the same schema version and data residency is hard to offer.
- [Control Planes for Database-Per-User in Neon](https://swe.quest/articles/control-planes-for-database-per-user-in-neon-f18c18dcc1448d8f.md): Neon · 2024-09-11 · Medium · 12 min read · Multi-tenancy, PostgreSQL, Schema migrations, System design
  A database-per-user architecture on Neon usually means one Neon project per customer, and that quickly needs a control plane to manage onboarding, monitoring and schema upgrades across many projects.
- [Behind Modem.dev’s Product Velocity](https://swe.quest/articles/behind-modem-dev-s-product-velocity-485adbdf853a0161.md): Neon · 2026-01-29 · Medium · 4 min read · PostgreSQL, Schema migrations, CI/CD, Developer productivity
  Modem, a startup building an AI agent that centralizes user feedback from Slack, Discord and GitHub, uses Neon Postgres branching as its development workflow.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
