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
Sign in to your Okta Admin Console.
Go to Applications → Applications and click Create App Integration.
Select API Services and click Next.
Name it Darwin AI – Directory Sync and click Save.
Step 2: Grant read-only scopes
Open the app's Okta API Scopes tab.
Click Grant next to
okta.users.readandokta.groups.read.
Don't grant any write, delete or admin-management scopes.
Step 3: Assign a read-only admin role
Go to Security → Administrators and click Add administrator.
Select the Darwin AI – Directory Sync app.
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
Go back to Applications → Darwin AI – Directory Sync → General.
Under Client Credentials, click Edit, select Public key / Private key and click Save.
Under Public keys, click Add key → Generate new key, choose PEM and copy the private key.
Copy the Key ID (KID) shown in the public keys table.
Copy the Client ID from Client Credentials.
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
In Darwin AI, go to Settings → Integrations.
Click New Integration, select Okta, enter a name and continue to Connection.
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
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 |
|
Insufficient permissions | The Read-only Administrator role wasn't assigned in step 3. |
FAQ
Does this change how my team signs in?
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?
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?
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?
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?
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.
