Linking Okta as a source
The Okta connector can link users, groups, applications, logs (audit events), group rules, and user types to PostHog.
To link Okta:
Go to the sources tab of the data pipeline section in PostHog.
Click + New source and then click Link next to Okta.
Enter your Okta domain (e.g.,
your-org.okta.com).Next, you need an API token from Okta. In the Okta Admin Console, go to Security > API > Tokens and click Create token. Give it a descriptive name and copy the token value.
The token's user should have read access to the resources you want to sync. The following scopes are recommended:
okta.users.readokta.groups.readokta.apps.readokta.logs.read
Back in PostHog, paste the token in the API token field and click Next.
Set up the schemas you want to sync and modify the method and frequency as needed. Once done, click Import.
Once the syncs are complete, you can start using Okta data in PostHog.
Schemas
The following schemas are available:
| Schema | Sync mode | Description |
|---|---|---|
users | Incremental | Okta user accounts |
groups | Incremental | Okta groups |
applications | Incremental | Okta applications and SSO integrations |
logs | Incremental (append-only) | Okta System Log audit events. Only syncs the last 90 days on initial sync. |
group_rules | Full refresh | Group membership rules |
user_types | Full refresh | Custom user type definitions |
Configuration
| Option | Type | Required |
|---|---|---|
Okta domain | text | Yes |
API token | password | Yes |