Linking WorkOS as a source
Enter your WorkOS API key to sync your WorkOS data into the PostHog data warehouse.
Adding a data source
- Go to the sources tab of the data pipeline section in PostHog.
- Click + New source and then click Link next to WorkOS.
- Find your API key in the WorkOS Dashboard under API Keys. The key starts with
sk_. - Back in PostHog, paste the key in the
API keyfield and click Next. - 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 |