Okta Identity Entity Pack

Entity Packs are not available for the US1-FED Datadog site.

Overview

The Okta Identity Entity Pack syncs your Okta user directory into Cloud SIEM. After you connect it, Cloud SIEM uses that directory to:

  • Populate the User Inventory with your Okta users.
  • Attach a user pill to signals so you can see who is behind the activity.
  • Score risk for a user across all their accounts in Entity Risks.

For what Entity Packs provide in general, and the permissions they require, see Entity Packs.

Datadog reads your directory through the Okta Users API, authenticating with an Okta API token that you create. Read-only access is all that is needed. Datadog never writes to your directory.

Prerequisites

Setup takes three values: a Name, your Okta Domain, and an API Token. You enter all three in the Entity Pack; the token is created in Okta.

Before you begin, make sure you have:

  • An Okta admin role that can create an API token and read users. Read-only Administrator is enough, and broader admin roles work too. See Okta’s standard administrator roles and permissions.
  • The SIEM Entities Admin permission in Datadog, which is required to connect a directory. Analysts who need the identity context it provides need at least SIEM Entities Read. See Entity Packs.

Setup

You can configure one set of credentials per Okta org. To sync more than one, see Connect additional Okta orgs.

Create the API token

  1. In the Okta Admin Console, go to Security > API.
  2. Click the Tokens tab, then click Create token.
  3. Name the token something that identifies Datadog as the consumer; for example, datadog-cloud-siem.
  4. From API calls made with this token must originate from, select Any IP. To restrict the token to Datadog’s addresses instead, see Network restrictions.
  5. Click Create token, then copy the token value immediately. Okta shows it only once and stores a hash of it afterward.

For the full procedure and the other network zone options, see Okta’s Manage Okta API tokens.

Create the token from a dedicated service account, such as datadog-integration@example.com, rather than from a person's account. A token inherits the permissions of the account that created it, and Okta rejects tokens from accounts that have been deactivated. If that account belongs to someone who leaves or loses their admin role, the sync stops, and the cause is hard to trace.

Token expiration

Okta API tokens are valid for 30 days, and every API request renews the token. An active Entity Pack therefore keeps its own token alive. A token left unused for more than 30 days is revoked permanently and cannot be reinstated.

Network restrictions

Selecting Any IP is the simplest option. If your organization requires a restricted token, scope it to an Okta IP zone containing Datadog’s published IP ranges.

Datadog publishes those ranges as JSON at a per-site endpoint. For the US1 site, that endpoint is https://ip-ranges.datadoghq.com/. Use the one that matches your own Datadog site, and refresh your zone whenever the ranges change. The response includes version and modified fields you can watch. For the full list of endpoints, see IP Ranges.

Two Okta constraints apply if you take this route. SSWS tokens work only with IP-based zones, not dynamic ones, and they cannot be used with blocklist zones.

Okta domain

Enter the host you sign in to, without a scheme or path (for example, example.okta.com).

Add credentials in Datadog

  1. In Datadog, go to Cloud SIEM > Content Packs.
  2. Filter by Entity Pack, then open the Okta Identity Entity Pack. It is marked AVAILABLE until you connect a directory.
  3. Click Add Credentials.
  4. In the Add credentials and activate content pack dialog, complete the three fields:
    FieldDescription
    NameA display name for this set of credentials; for example, Production credentials. Use a name that identifies the org if you plan to connect more than one.
    Okta DomainThe Okta org to sync; for example, example.okta.com. Enter the host only, with no scheme or path.
    API TokenThe token value you copied from Okta. Paste the value by itself, without the SSWS prefix used in raw API requests.
  5. Click Test Connection. Datadog validates the credentials against Okta before saving them. If validation fails, see Troubleshooting.
  6. When the connection test succeeds, save the credentials to activate the Entity Pack.

Datadog encrypts the API token at rest and never returns it in the interface or in API responses.

Verify the sync

Synchronization is continuous. The first sync starts as soon as Datadog validates the credential, and each sync after that begins when the previous one finishes, so you never schedule or trigger a sync yourself.

That makes Last synced a health check in its own right. A healthy account is always recently synced, so a Last synced time that stops advancing means something is wrong.

After Datadog validates a credential, the Entity Pack is marked ACTIVE. Open its side panel in Cloud SIEM and check the following:

Credentials

The Credentials section lists each connected account. Expand an account to see:

FieldWhat it tells you
DomainThe Okta org this account syncs.
StatusWhether synchronization is Enabled or disabled for this account. Use the toggle to change it.
Last updatedWhen the credential itself was last modified.
Sync statusWhether the most recent sync completed; for example, Synced.
Last syncedHow long ago the most recent sync ran.
Last sync durationHow long that sync took.

Each account also carries a validation badge:

BadgeMeaning
VALIDDatadog can authenticate to Okta with these credentials.
INVALIDDatadog cannot authenticate. See Troubleshooting.

Through the API, a credential reports initializing after Datadog accepts it and before the first sync completes.

Key Metrics

The Key Metrics dashboard shows four widgets:

  • Users Synced: How many users a sync updated. This measures directory churn rather than directory size, so it normally reads far lower than your total user count. For the total, use the Entities section below.
  • Users by Credential: The same count, broken out by connected account.
  • Sync History by Credential: Completed syncs over time. A gap means a sync failed or was skipped.
  • Sync Duration by Credential: How long each sync took. An occasional spike is normal. A sustained climb usually means the directory is growing, or that Okta is rate limiting the calls.

Each per-credential widget groups by credential_name, which is derived from the Name you entered.

Entities

The Entities section lists the users this Entity Pack synced. Each row shows Display Name, Principal ID, User Type (for example, human or service_account), and Account Status (for example, ACTIVE).

Cloud SIEM normalizes Okta’s user statuses to the common status model it uses for every identity provider (ACTIVE, SUSPENDED, DELETED). The values here are not Okta’s own status names.

The entity count is the total number of users synced from this directory, which makes it the figure to compare against the size of your Okta directory. The list covers a time range you can change. To see everything, click View in User Inventory.

Connect additional Okta orgs

Each set of credentials syncs one Okta org. To sync another, create an API token in that org, then click Add account in the Credentials section of the Entity Pack side panel.

When you connect multiple orgs:

  • Name each account after the org it syncs. The three per-credential widgets group by credential_name, a normalized form of the Name you enter, so vague names make those widgets hard to read.
  • Use the per-account toggle under Status to pause synchronization for one org without removing its credential.
  • Create a separate API token in each org. A token authenticates only against the org that issued it.

Troubleshooting

The connection test fails

Work through these causes in order:

CauseHow to confirmFix
Token value pasted with the SSWS prefix or surrounding whitespaceThe value you pasted is longer than the token Okta displayedRe-paste the token value by itself.
Okta domain entered with a scheme or pathThe Okta Domain value starts with https://, or ends in /admin or a trailing slashEnter the host only; for example, example.okta.com.
Wrong Okta org hostThe value uses example.okta.com for a preview org, or omits the -emea suffix for an EMEA orgUse the host you sign in to: example.oktapreview.com or example.okta-emea.com.
Token creator is not an admin, or cannot read usersThe account that created the token has no admin role in the Okta Admin ConsoleCreate the token from an account with Read-only Administrator or a broader admin role.
Token creator was deactivatedThe account that created the token is no longer active in OktaCreate a token from an active service account. Okta rejects tokens from deactivated users.
Token revoked or expiredThe token is missing from the Tokens tab in Okta, or its last-used date is more than 30 days oldCreate a token and add it in Datadog. Okta permanently revokes tokens left unused for 30 days.
Token restricted to network zones that exclude DatadogThe token’s Token can be used from setting is anything other than Any IPSet the token to Any IP, or confirm the IP zone covers Datadog’s published ranges. See Network restrictions.

Credentials were working and are now invalid

The cause is usually a change on the Okta side:

  • The account that created the token was deactivated, or lost the admin role that gave it read access to users. A token’s permissions follow the creating account’s, so a role change alone can break the sync. This is the common failure when the token belongs to a person rather than a service account.
  • The token was revoked from the Tokens tab, or expired after 30 days without use.
  • The token’s network zone restrictions changed.

Okta logs token creation and revocation in the System Log as API token created and API token revoked. That is the fastest way to confirm whether a token was revoked, and by whom.

Syncs are slow or intermittent

Okta applies API rate limits per org and returns HTTP 429 Too Many Requests once a limit is exceeded. Tokens created in the Okta Admin Console default to 50% of each rate limit, and any other integration calling with the same token draws on that same budget.

  • In Okta, check Reports > Rate Limits for warnings and violations, which Okta also writes to the System Log.
  • On the token’s page in Okta, raise the Token rate limits percentage if the default is constraining the sync.
  • Give Datadog its own token rather than reusing one that other integrations already call with.

See Okta’s rate limits overview.

The sync succeeds but no users appear

  • Confirm that the Domain value matches the domain whose users you expect. A valid admin user in a different domain than the one you entered can produce an empty result.

No user pill appears on signals

Cloud SIEM matches identity context to events by email address. If a synced user has no pill on their activity, check that the logs from that source populate the user email field, and that the source’s OCSF pipeline is active. See Open Cybersecurity Schema Framework.

An Entity Pack does not require the matching log integration, and the integration does not require the Entity Pack. If you are syncing the directory but see no Okta activity to attach it to, you may also need the Okta log integration.

If you still need help, contact Datadog support.

Further reading