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

Connect Drata to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Drata API key to pull your compliance data into the PostHog Data warehouse.
You can create an API key under Settings → API keys in Drata. A key with read scopes is sufficient; pick the region that matches your Drata account.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Drata region | select | Yes |
Linking Drata to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Drata
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
workspaces | Workspaces (products) in your Drata account. Controls, monitoring tests, evidence, and frameworks are scoped to a workspace. | Full refresh | — | id |
users | User accounts in your Drata organization. | Full refresh | — | id |
personnel | Personnel records tracked for compliance, including employment status and per-person compliance checks (security training, background checks, MDM). | Full refresh | — | id |
devices | Devices monitored for compliance (encryption, firewall, antivirus, screen lock) across MDM and agent sources. | Full refresh | — | id |
assets | Assets in your Drata asset inventory — physical and virtual assets discovered from connections or added manually. | Full refresh | — | id |
vendors | Vendors tracked in Drata's vendor risk management, with risk, impact, and review status. | Full refresh | — | id |
policies | Policies in your Drata account, including version, approval, and renewal state. | Full refresh | — | id |
events | Audit-trail events recording activity across your Drata account (policy changes, vendor updates, connection activity, and more). | Incremental, Full refresh | createdAt | id |
controls | Controls in each workspace, with readiness, monitoring, and framework mappings. | Full refresh | — | workspaceId, id |
monitoring_tests | Automated monitoring tests in each workspace, with pass/fail status and check state. | Full refresh | — | workspaceId, id |
evidence_library | Evidence library items in each workspace, tracking artifacts collected for audits and their renewal status. | Full refresh | — | workspaceId, id |
frameworks | Compliance frameworks enabled in each workspace (SOC 2, ISO 27001, HIPAA, ...), with readiness counts. | Full refresh | — | workspaceId, id |
risk_registers | Risk registers grouping the risks you track. Requires Drata's Risk Management Pro feature. | Full refresh | — | id |
risks | Risks in each risk register, with scoring and treatment plans. Requires Drata's Risk Management Pro feature. | Full refresh | — | riskRegisterId, id |