Linking WorkOS as a source

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.

Learn more
PostHog Wizard hedgehog

Contents

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 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 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

TableDescriptionSync method
organizationsOrganizations in your WorkOS accountFull refresh
usersUsers managed via WorkOS User ManagementFull refresh
connectionsSSO connectionsFull refresh
directoriesDirectory Sync directoriesFull refresh
directory_usersUsers synced from connected directoriesFull refresh
directory_groupsGroups synced from connected directoriesFull refresh

Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync.

Configuration

OptionTypeRequired
API keypasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary 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——

Still have questions?

Was this page useful?