---
title: "Query your WorkOS users in Neon with the WorkOS Sync Engine"
description: "WorkOS Sync Engine, open-sourced by WorkOS, mirrors WorkOS identity data (users, organizations, memberships, sessions, auth attempts, events) into a workos schema in Postgres."
url: "https://swe.quest/articles/query-your-workos-users-in-neon-with-the-workos-sync-engine-384d596099bd77f1"
canonical: "https://neon.com/blog/query-your-workos-users-in-neon-with-the-workos-sync-engine"
source: "Neon"
published: "2026-11-19"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["postgres","identity-auth","data-pipelines","serverless"]
---

# Query your WorkOS users in Neon with the WorkOS Sync Engine

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-11-19, 7 min read, Announcement. Original: [https://neon.com/blog/query-your-workos-users-in-neon-with-the-workos-sync-engine](https://neon.com/blog/query-your-workos-users-in-neon-with-the-workos-sync-engine)

## Summary

WorkOS Sync Engine, open-sourced by WorkOS, mirrors WorkOS identity data (users, organizations, memberships, sessions, auth attempts, events) into a workos schema in Postgres. Identity data can then be joined with product tables in SQL instead of paged through the API. The engine does a full backfill, follows the WorkOS Events API in order, and periodically reconciles against WorkOS to catch deletions, with idempotent handling of duplicate or out-of-order events. On Neon it runs as a Neon Function scheduled by cron Function Triggers (tick every minute, backfill every 5 minutes, hourly and weekly reconcile) plus a webhook. It can also run as a library, CLI or container against any Postgres connection string.

Written by swe.quest, not by the author.

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

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- SQL joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- cron schedules

## Keywords

WorkOS Sync Engine, WorkOS, Neon, Neon Functions, WorkOS Events API, Function Triggers

## Related posts

- [Durable and auditable workflows with DBOS and ClickHouse Managed Postgres](https://swe.quest/articles/durable-and-auditable-workflows-with-dbos-and-clickhouse-managed-postgres-84b2cf91df44a544.md): ClickHouse · 2026-11-24 · Medium · 6 min read · Event-driven architecture, PostgreSQL, Analytics & OLAP, Scheduling, Python
  DBOS, an open-source Postgres-native durable execution library, stores workflow and step checkpoints, queues and schedules in Postgres so crashed processes resume from the last completed step without a separate orchestrator.
- [How Cedalio uses Neon for an efficient development workflow](https://swe.quest/articles/how-cedalio-uses-neon-for-an-efficient-development-workflow-265835e6a16f5a00.md): Neon · 2024-05-29 · Easy · 5 min read · PostgreSQL, CI/CD, Multi-tenancy, Serverless
  Cedalio, an ESG data verification startup, moved from DynamoDB to Postgres and picked Neon over RDS for a simpler API and console.
- [Workflows are coming to Supabase](https://swe.quest/articles/workflows-are-coming-to-supabase-a57ed34660f0256b.md): Supabase · 2021-04-02 · Medium · 5 min read · Serverless, PostgreSQL, Elixir & Erlang, Scheduling, Event-driven architecture
  Supabase is building Workflows, an open source orchestration engine written in Elixir that uses the Amazon States Language to coordinate existing functions (AWS, GCP, Azure, OpenFaaS, Postgres) in response to database events or HTTP calls.
- [Building with Stripe Data Pipeline and the Neon backend](https://swe.quest/articles/building-with-stripe-data-pipeline-and-the-neon-backend-d3614e7e4b927058.md): Neon · 2026-10-26 · Medium · 11 min read · Payments & fintech, PostgreSQL, System design, Debugging, Serverless
  Stripe Data Pipeline's real-time sync streams Stripe objects into Postgres tables within seconds, which lets apps drop webhooks entirely: they write to Stripe's API and read charges, prices and promotion codes from synced stripe.\* tables.
- [Replication redefined: How we built a low-latency, multi-tenant data replication platform](https://swe.quest/articles/replication-redefined-how-we-built-a-low-latency-multi-tenant-data-replication-467db62624b6c7cc.md): Datadog Engineering · 2025-11-04 · Medium · 10 min read · Event-driven architecture, Replication, PostgreSQL, Queues & messaging, Schema migrations
  Datadog grew a single Postgres-to-search replication pipeline into a multi-tenant CDC platform built on Debezium, Kafka, and Kafka Connect.

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)
