Secure Okta with Mondoo
Continuously scan Okta for misconfigurations and security issues.
To connect an Okta organization to Mondoo, you generate an Okta API token and add it to an Okta integration in your space. Mondoo keeps the assessment current as your Okta configuration changes.
Before you begin
- Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
- An Okta admin account to create the API token. The token inherits that admin's permissions, and some of what Mondoo reads, such as the list of API tokens in the org, requires the Super Administrator role. With a narrower admin role, the checks that need the missing permissions end in a scan error.
Generate an Okta API token
Mondoo needs an Okta API token to call the Okta API. Create one by following Create an API token in the Okta documentation. Copy the token; you need it in the next section.
Add an Okta integration
You need the Editor or Owner role, or another role with this permission. To see every role, read Roles and permissions.
In the Mondoo App, navigate to the space where you want to add the integration. Some integrations can also be added once at the organization level to cover every space with one connection. To see which ones, read Set up integrations once for your whole organization.
In the space's side navigation bar, select Integrations. In the top right, select INSTALL. On the Install Integration page, find the integration you want by browsing a category or searching by name:
-
Under SaaS Security, select Okta.

-
In Choose an integration name, enter a name that identifies the Okta organization.
-
Under Configure Okta credentials, in Organization Domain, enter your Okta-hosted domain without
https://, for examplelunalectric.okta.com. To find this value, read Find your Okta domain in the Okta documentation.Mondoo accepts only Okta-hosted domains that end in
okta.com,okta-emea.com,okta.eu,oktapreview.com, orokta-gov.com. If your organization uses a custom domain, enter its Okta-hosted domain instead.Do not include
-adminin the domain. For example, if your Okta URL isdev-22556123-admin.okta.com, enterdev-22556123.okta.com. -
In API Token, paste the token you generated.
-
(Optional) Under Enable security policies (optional), enable the policies you want Mondoo to score your Okta organization against.
-
(Optional) Under Set Annotations (optional), select + ADD ANNOTATION to add key-value pairs that Mondoo applies to every asset this integration discovers. To learn more, read Annotate assets.
-
Select START SCANNING.
Verify the integration
When you select START SCANNING, Mondoo starts the first scan and opens the integration's page. Status shows Active once the scan is queued, and Most Recent Activity lists each scan and any errors it reports.

When the scan finishes, an Okta Organization asset appears in the space. To review it, navigate to the space and select Inventory. To learn what each integration status means, read Integration status and troubleshooting.
Troubleshoot
| Message | Cause | Fix |
|---|---|---|
Remove "-admin" from your domain or Must be a valid Okta domain under Organization Domain | The domain is the admin console URL, includes https://, or isn't an Okta-hosted domain. | Enter the bare Okta-hosted domain, such as lunalectric.okta.com. |
| Okta rejected the credential. Check it and try again. when you create the integration | Okta refused the token: it was mistyped, revoked, or expired. | Create a new token and try again. |
| Okta integration created, but its first scan could not be started. | The integration exists, but Mondoo couldn't queue its first scan. | Don't add the integration again. Open it and select RUN. |
failed to get Okta org ID with 401 Unauthorized in Most Recent Activity | The token stopped working after the integration was created. Okta expires a token after 30 days without use and deactivates it when its admin is deactivated. | Create a new token and rotate it in Mondoo. |
| Scans are paused at the top of the integration page | The integration's credential was rejected by Okta or has expired. | Rotate the API token. |
ended in a scan error, so their results are missing in Most Recent Activity | The token's admin role can't read some of the configuration Mondoo checks. | The message names the most common error. Create a token as a Super Administrator and rotate it in Mondoo. |
Manage your integration
To open the integration, navigate to the space, select Integrations > Okta, and choose the integration.
Rotate the API token
How you replace the token depends on how Mondoo stored it when the integration was created. Integrations added by someone with permission to create and view credentials store the domain and token as a credential. Older integrations, and integrations added by someone without that permission, keep the token on the integration.
-
If the integration uses a credential: The integration detail page shows a Credential section, and the edit form shows Managed by a credential in place of the domain and token boxes. Select the credential's name to open it, then select Rotate and enter the new token. Every integration that uses the credential switches to the new token. To learn more, read Manage Integration Credentials.

-
If the integration stores its own token: Select the pencil icon. In API token (optional update), enter the new token, then select SAVE CHANGES. Leave the box empty to keep the existing token.
Next steps
- Explore your asset inventory.
- Assess and improve your security to review and prioritize your findings.
- Mondoo Okta Resource Pack Reference
Last updated on