Organisations link to billing, seats follow membership, and the legacy client rows retire

OrionGIS web 1.65.0Released 3 December 2026

An organisation can now be tied to its billing account on Central — the org's members become the account's seats and membership changes keep them in sync. Organisation membership is now the single source of truth for client accounts, and a staff runbook replaces the old hand-run setup.

Changes since 1.64.0.

#Added

  • Billing link on Central. Staff pick the billing_accounts row that pays for an organisation (or unlink it). The org's members become the account's seats with role mapping (owner → owner, admin → admin, everyone else → member), and every membership change — invite, removal, role change — keeps the seats in sync automatically. The org's Settings tab shows the linked account by name.
  • Staff runbook. docs/operations/org-onboarding.md documents the whole client-org lifecycle — Central creation with products and closed workspace, moving pre-org resources into an org by founder decision only (no automatic backfill; AI chats stay personal), members/roles/access, the billing link, the automatic GeoNode group, and the customer-journey verification walkthrough.

#Changed

  • Organisation membership is now the single source of truth for client accounts. A full-scope org member is never treated as a client account, client behaviour comes from a client-scoped membership (collector role included), Orion staff are exempt, and the legacy client_accounts table now serves only pre-organisation accounts. The table stays as a write-through cache during the rollout.
  • Form invites mirror into org assignments. Inviting (or removing) a member to an org-owned form project now writes the corresponding assignment row, so the invitee sees the form in their org workspace and the Access tab stays in sync.
  • The landing page's "organisations using it" count now counts real organisations.

#Infrastructure

  • New test scripts/org-billing-test.ts (throwaway database, 10 checks): seat write on link with role mapping, hook-driven seat add/remove, unlink clearing seats, re-link restoring them, and the client-account retirement rules (full member, client-scope collector, legacy fallback, staff exemption).