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:

  1. Go to the sources tab of the data pipeline section in PostHog.

  2. Click + New source and then click Link next to Okta.

  3. Enter your Okta domain (e.g., your-org.okta.com).

  4. 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.read
    • okta.groups.read
    • okta.apps.read
    • okta.logs.read
  5. Back in PostHog, paste the token in the API token field and click Next.

  6. 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:

SchemaSync modeDescription
usersIncrementalOkta user accounts
groupsIncrementalOkta groups
applicationsIncrementalOkta applications and SSO integrations
logsIncremental (append-only)Okta System Log audit events. Only syncs the last 90 days on initial sync.
group_rulesFull refreshGroup membership rules
user_typesFull refreshCustom user type definitions

Configuration

OptionTypeRequired
Okta domaintextYes
API tokenpasswordYes

Community questions

Was this page useful?

Questions about this page? or post a community question.