Skip to main content

Okta Integration

Sync users, groups and departments from Okta into Darwin AI.

Written by Sara Levy

Connect Okta so Darwin AI can sync your users, groups and departments, and map Okta groups to AI tools. This article sets up one app in your Okta org: Darwin AI – Directory Sync.

Looking for sign-in with Okta? That uses a different app. See Okta SSO.

What this integration does

  • Read-only: it can't create, change or delete anything in your Okta org.

  • Narrow scope: users and groups only, with no access to apps, policies or logs.

  • Separate from sign-in: it doesn't change how your team signs in.

  • Revocable at any time from your Okta Admin Console.

Before you begin

You'll need admin access to Darwin AI and a Super Administrator in Okta (to assign the app a read-only admin role). Setup takes about 10–15 minutes.

Two separate Okta apps

App in your Okta org

What it does

Connected in Darwin

Article

Darwin AI – Directory Sync

Reads users, groups and departments. Nobody signs in with it.

Settings → Integrations → Okta

This article

Darwin AI – Sign-in (optional)

Lets your team sign in to Darwin with Okta.

Settings → SSO Configuration → Okta

Important: Create a new app for directory sync. Don't reuse or change your Okta sign-in app.

Already connected?

If Settings → Integrations already shows a working Okta integration, keep it. Don't create a new app or remove anything.


Step 1: Create an API Services app in Okta

  1. Sign in to your Okta Admin Console.

  2. Go to Applications → Applications and click Create App Integration.

  3. Select API Services and click Next.

  4. Name it Darwin AI – Directory Sync and click Save.


Step 2: Grant read-only scopes

  1. Open the app's Okta API Scopes tab.

  2. Click Grant next to okta.users.read and okta.groups.read.

Don't grant any write, delete or admin-management scopes.


Step 3: Assign a read-only admin role

  1. Go to Security → Administrators and click Add administrator.

  2. Select the Darwin AI – Directory Sync app.

  3. Choose the Read-only Administrator role and click Save changes.

Important: Don't assign Super Administrator or any role broader than Read-only Administrator. This integration never needs write access.


Step 4: Set up key-based authentication

  1. Go back to Applications → Darwin AI – Directory Sync → General.

  2. Under Client Credentials, click Edit, select Public key / Private key and click Save.

  3. Under Public keys, click Add key → Generate new key, choose PEM and copy the private key.

  4. Copy the Key ID (KID) shown in the public keys table.

  5. Copy the Client ID from Client Credentials.

  6. Copy your Okta domain (e.g., mycompany.okta.com), without any path.

Important: Okta shows the private key only once. Copy it before closing the dialog. If you lose it, generate a new key and repeat this step.


Step 5: Connect the app in Darwin AI

  1. In Darwin AI, go to Settings → Integrations.

  2. Click New Integration, select Okta, enter a name and continue to Connection.

  3. Fill in the fields from step 4:

    • Okta Domain: your Okta URL

    • Client ID: from the Directory Sync app, not your sign-in app

    • Private Key (PEM): the key you copied

    • Key ID: the KID from the public keys table

  4. Click Test Connection. Once the test passes, click Create Integration.

After you connect

  • The first sync pulls in your current users, groups and departments.

  • Groups are available to map to AI tools. See Manage Authorized Tool Access.

  • Departments come from each user's Okta department profile attribute.

  • Group and department changes in Okta sync automatically.

Troubleshooting

What you see

Likely cause

Test Connection fails

The Okta domain, Client ID or Key ID is mistyped, or the private key wasn't pasted in full.

Invalid client / unauthorized client

The Client ID was copied from the sign-in app instead of the Directory Sync app.

Invalid key / signature error

Client Credentials wasn't switched to Public key / Private key, or the Key ID doesn't match the private key.

Connects but returns no groups

okta.users.read and okta.groups.read weren't granted in step 2.

Insufficient permissions

The Read-only Administrator role wasn't assigned in step 3.


FAQ

Does this change how my team signs in?

No. This app only reads directory data. Sign-in is set up separately in Okta SSO.

Can Darwin change anything in Okta?

No. The app has read-only scopes (okta.users.read, okta.groups.read) and the Read-only Administrator role.

Why does Darwin need our private key?

The private key signs Darwin AI's requests to Okta. It's stored encrypted and used only to authenticate against your org, limited by the two read-only scopes and the Read-only Administrator role.

How do we revoke access?

Deactivate or delete the Darwin AI – Directory Sync app in Applications → Applications, or remove its key from the public keys list. Access stops immediately.

Can I use my Okta sign-in app for directory sync?

No. They're different app types: sign-in uses an OIDC Web app, and directory sync uses an API Services app with read-only access. Keep them separate.

Did this answer your question?