Teamcove Ops
A multi-tenant Bubble SaaS migration with customer-by-customer rollout
- Scale
- B2B workflow software
- Bubble
17days
Delivery
36/36
Access matrix
100%
Tenant reconciliation
540ms
71.6% lower
Core API response, p95
Illustrative before/after figures.
The product
Owners invited colleagues, managers allocated work and members updated assigned records. A person could belong to multiple organisations with different responsibilities. Workspaces contained tasks, customer records and documents. Subscriptions remained with the existing billing provider. The product's most important boundary was therefore not the user alone, but the relationship between the authenticated person, active organisation and permitted action.
The challenge
The trigger was increasing difficulty reviewing permission changes before release. A global role could not represent a user who owned one organisation and contributed to another. The team documented membership exceptions and inspected privacy rules and backend workflows before choosing the migration. Teamcove's engineering group needed ownership of releases and repeatable access tests. These requirements, rather than a general claim that SaaS must leave Bubble, shaped the rebuild.
The founder needed to onboard new organisations without asking engineering to inspect every invitation. A role could appear correct in the interface while a direct request used the wrong organisation context. The brief prioritised organisation ownership, invitations and account switching before cosmetic work. We selected a small pilot cohort and a tenant-by-tenant acceptance register, so the decision to move the next group depended on reconciled records and complete journeys.
How we tackled it
- 01
Define tenant context. We mapped each action to the relevant organisation membership rather than trusting a browser-supplied tenant identifier.
- 02
Rebuild permissions. Server checks and database policies expressed the approved access matrix, including direct requests and background jobs.
- 03
Preserve invitations. Organisation, role, expiry and replay rules remained attached to each invitation.
- 04
Gate the rollout. One organisation became the pilot; its data and 18 critical journeys had to pass before the route opened for the next cohort.
What we built
Next.js, TypeScript and Tailwind reproduced the SaaS interface. Postgres with Drizzle modelled organisations, memberships and business records, with database policies adding an access boundary. Managed authentication handled identity and the agreed first-login path. A worker reconciled subscription entitlements and migration state. The provider retained billing authority. Deployment checks treated permissions as a required part of release acceptance, not an optional manual check.
The rehearsal tested organisation switching, revoked memberships, expired invitations and attempts to request another customer's record. Membership edges and ownership were reconciled before the pilot moved. A controlled write pause captured its final delta, followed by owner acceptance. Recovery required reconciling new writes before restoring the earlier route. Remaining organisations then moved through the same gates, keeping exceptions visible in the rollout register.
Before & after — illustrative results
The comparison uses the same 50-session read/write workload for 20 minutes. Expected permission denials are reported separately from unexpected failures. The access score applies only to the 36 defined combinations; it does not claim universal isolation without further testing. The reconciliation row checks account relationships as well as row counts. The pilot row demonstrates a release gate, not evidence of revenue or retention improvement.
Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.
| Metric | Before | After | Comparison conditions |
|---|---|---|---|
| Access matrix | 29/36 fixture combinations pass | 36/36 pass | UI, direct API, background tasks and organisation switching with fixed identities. |
| Tenant reconciliation | 100 organisations; 50,000 records | 100% ownership mapping; 0 unresolved exceptions | Compare tenant IDs, membership edges and selected content hashes. |
| Core API response, p95 | 1,900 ms | 540 ms — 71.6% lower | 50 sessions, 20-minute mixed workload; expected denials reported separately. |
| Pilot acceptance | 13/18 critical journeys pass in rehearsal | 18/18 before the next cohort | Retest failed journeys and retain the account-level launch decision. |
| Configure a new organisation, median | 35 min | 12 min | Ten scripted organisations with identical roles and invitations; same operator; include permission verification. |
| Organisation dashboard LCP, lab p75 | 4.7 s | 2.0 s — 2.4× faster | Ten fixed tenant dashboards; 40 loads each; same data/network; backend tests independently retain 50-session load. |
The outcome
Teamcove ended the demonstration with a process for changing permissions and moving customer accounts that its own engineering team could follow. The founder could ask which pilot checks remained open before authorising the next cohort. Handover included policy mapping, incident queries and rollout ownership. The case illustrates Scale's value when migration involves a live customer's identity, data and working routine together.
Why these improvements mattered
A guided setup flow replaced manual checks across several screens. Server-side tenant context and an explicit access matrix reduced ambiguity for support staff. The benefit is a controllable onboarding process; successful fixtures are not proof of universal isolation under every possible attack.
Scope & timeline
Scope
Scale covered the existing organisation journeys, invitations, role mapping, subscription entitlement lookup and validated operational data. Deliverables included the permission matrix, tenant-level manifests and a cohort rollout register. Enterprise SSO and new subscription plans stayed outside scope. Account-by-account routing was chosen only after shared records were assigned explicit owners. That additional coordination reduced the scope of each launch decision while keeping write authority unambiguous.
Delivery timeline
Delivery schedule: 17 working days. Team: Two engineers, shared QA and the customer-success lead. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.
Days 1–3: resolve tenant ownership and approve the access matrix.
Days 4–11: rebuild scoped APIs, invitations and entitlement lookup.
Days 12–15: reconcile every tenant and rehearse the pilot.
Days 16–17: move the accepted cohorts and transfer support procedures.
FAQ
- How do you migrate roles from a multi-tenant Bubble app?
- Map permissions to organisation membership and action, then test cross-tenant requests and users who switch between accounts.
- Can SaaS customers migrate in separate cohorts?
- Yes when writes and shared-data ownership can be isolated. The plan needs routing, reconciliation and recovery rules for each cohort.
Discuss a similar migration
Bring your most unusual customer role and an organisation suitable for a pilot. Bubble to Code can map tenant boundaries, shared-data dependencies and the acceptance gate for a Scale migration. Establish which customer can move independently before planning a wider rollout.
