Authentik Integration Guide
If your organization runs Authentik as a self-hosted identity provider, this integration pulls your directory data into Openlane so you have the user and group context you need for User Access Reviews, onboarding/offboarding evidence, and identity governance.
Key Capabilities
- API Token Authentication: Connects to your Authentik instance using a static API token scoped to a service account
- Directory Metadata Sync: Reads users, groups, and group memberships from Authentik, giving you the identity baseline for access reviews and audits.
- Service Account Awareness: Syncs
service_accountandinternal_service_accountuser types and maps them to the Service account type, keeping your identity roster accurate. - Flexible Group Sync: Group and membership sync can be disabled independently if you only need user data.
Prerequisites
- A running Authentik instance with a reachable base URL.
- Authentik admin access to create a service account and generate an API token.
Step-by-Step Setup
Step 1: Create an Authentik API Token
- In the Authentik admin panel, navigate to Directory > Users and create a dedicated service account for Openlane (or select an existing one).
- Navigate to Directory > Tokens and App passwords.
- Click Create and select API Token as the token type.
- Assign the token to your Openlane service account.
- Copy the token value; it is only shown once.
Step 2: Connect in Openlane
-
Navigate to Organization Settings > Integrations and find Authentik.
-
Click Configure and enter the required fields:
Field Required Purpose baseUrlYes Base URL of your Authentik instance (e.g. https://authentik.mycompany.com)tokenYes Static API token used for Bearer token authentication -
Click Save.
Step 3: Configure Sync Behavior
Optionally configure which data is collected and how records are filtered before ingestion:
Directory Sync
| Setting | Description |
|---|---|
| Primary Directory | Designate this connection as the primary directory source for your organization; the primary directory is the authoritative source that populates the majority of fields on identity holder records |
| Disable Group Sync | When enabled, only users are synced; groups and memberships are skipped |
| Filter Expression | Optional Common Expression Language (CEL) expression evaluated against each record; only records that match are ingested (allows inclusion) |
Filter expression example:
payload.type == 'internal'
CEL expressions have access to the full raw payload for each record via payload.<field>.
Validate Connection
After saving, Openlane runs a health check against your Authentik instance and displays the result on the Installed tab of the Integrations page. You should see a Healthy badge confirming connectivity. If the badge shows Needs Attention, review the troubleshooting section below.
What Openlane Syncs
Openlane reads users, groups, and group memberships from Authentik. All Authentik user types are synced, including internal, external, and service accounts, so your identity roster reflects automation identities as well as people. Groups and memberships are skipped when Disable Group Sync is enabled, which is useful if you only need user data.
This data feeds directly into User Access Reviews, onboarding/offboarding verification, and identity scope validation.
Disconnect
To remove this integration:
- Navigate to Organization Settings > Integrations
- Select the Installed tab
- Open the menu on the integration card and select Disconnect
- Go to API Tokens in Authentik to remove the token
This removes stored credentials and stops all collection activity. You can reconnect later by configuring the integration again.
Troubleshooting
- Auth failures: verify the API token is valid, has not expired, and is assigned to the correct service account.
- URL issues: verify the base URL uses HTTPS and does not include a trailing slash (e.g.
https://authentik.mycompany.com). - Missing users: verify the service account token has read permissions for users, groups, and group memberships in the Authentik admin panel.
- No group data: confirm that Disable Group Sync is not enabled if you expect group and membership records.