> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Linking WorkOS as a source Canonical URL: https://posthog.com/docs/data-pipelines/sources/workos > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [Adding a data source](#adding-a-data-source) - [Available tables](#available-tables) - [Configuration](#configuration) - [Supported tables](#supported-tables) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d) Let AI connect your sources for you Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog. `npx @posthog/wizard warehouse` ![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png) ![](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png)Let AI connect your sources for you Enter your WorkOS API key to sync your WorkOS data into the PostHog data warehouse. ## Adding a data source 1. Go to the [sources tab](https://app.posthog.com/data-management/sources) of the data pipeline section in PostHog. 2. Click **\+ New source** and then click **Link** next to WorkOS. 3. Find your API key in the [WorkOS Dashboard](https://dashboard.workos.com/) under **API Keys**. The key starts with `sk_`. 4. Back in PostHog, paste the key in the `API key` field and click **Next**. 5. Select the tables you want to sync, set the sync method and frequency, then click **Import**. Once the syncs are complete, you can start using WorkOS data in PostHog. ## Available tables | Table | Description | Sync method | | --- | --- | --- | | `organizations` | Organizations in your WorkOS account | Full refresh | | `users` | Users managed via WorkOS User Management | Full refresh | | `connections` | SSO connections | Full refresh | | `directories` | Directory Sync directories | Full refresh | | `directory_users` | Users synced from connected directories | Full refresh | | `directory_groups` | Groups synced from connected directories | Full refresh | **Incremental** tables sync only new or updated records on each run. **Full refresh** tables reload all data on each sync. ## Configuration | Option | Type | Required | | --- | --- | --- | | `API key` | password | Yes | ## Supported tables | Table | Description | Sync method | Incremental field | Primary key | | --- | --- | --- | --- | --- | | `organizations` | An organization (a tenant/company) in WorkOS that users and connections belong to. | Webhook, Full refresh | — | — | | `users` | A user managed by WorkOS User Management (AuthKit). | Webhook, Full refresh | — | — | | `connections` | An SSO connection between an organization and an identity provider. | Full refresh | — | — | | `directories` | A directory connection used for Directory Sync (SCIM) with an organization. | Full refresh | — | — | | `directory_users` | A user synced from an organization's directory via Directory Sync. | Webhook, Full refresh | — | — | | `directory_groups` | A group synced from an organization's directory via Directory Sync. | Webhook, Full refresh | — | — | | `waitlist_entries` | An email address on an AuthKit waitlist, with its approval state. | Full refresh | — | — |