OneLogin connector

Use the OneLogin connector to respond to an identity incident in OneLogin, such as a suspicious sign-in or a stolen password. Look up a user, the user's apps, roles, and activity events, then lock the account, end the user's OneLogin session, or set a new password when the evidence shows the account is compromised. OneLogin is the cloud identity and access management (IAM) service from One Identity, and the connector works through the OneLogin API.

You can use this connector in Agent Builder and Workflows. Agents can use only the actions that read data. The actions that change data in OneLogin (lockUser, unlockUser, logUserOut, setPasswordCleartext, and deleteUser) aren't offered to agents. Run them in a workflow or with the Run a connector API.

Note

This limit applies to agents only. A Kibana user with the Actions and Connectors: Read privilege can run any action that is enabled on the connector, including the actions that change data, if the API credential's scope allows them. A workflow can also run them, including a workflow that an agent starts.

To keep these actions from running, enable only the read actions on the connector. For a connector that only agents should use, also give its API credential the Read users or Read All scope.

To use the OneLogin connector, you need:

  • A OneLogin API credential. Its scope decides which actions work. Manage All allows every action, and Read users or Read All allows only the actions that read data. For every scope, refer to Required scopes.
  • The Actions and Connectors: All privilege to create and edit connectors.

You can create connectors in Stack Management → Connectors.

To create a OneLogin API credential for the connector:

  1. Sign in to the OneLogin admin portal as an account owner or an administrator who can manage API credentials.
  2. Go to Developers → API Credentials, and select New Credential.
  3. Enter a name, for example Elastic, select the Manage All scope, and select Save. For narrower scopes, refer to Required scopes.
  4. Copy the client ID and client secret that OneLogin shows.

The API credential belongs to the administrator who created it. If that administrator is deleted, OneLogin rejects token requests for the credential. Create a new API credential and update the connector.

OneLogin grants each API credential one scope. The scope decides which actions work:

Scope Actions
Manage All (recommended) All actions
Manage users All actions except lockUser and setPasswordCleartext
Read users or Read All listUsers, getUser, getUserApps, getUserRoles, getEvents

An action that the scope does not allow fails with 401 Insufficient Permission.

OneLogin connectors have the following configuration properties:

Subdomain
The first part of your OneLogin address, for example acme for https://acme.onelogin.com. Use only letters, digits, and hyphens. The connector calls the API at https://<subdomain>.onelogin.com.
Token URL
https://<subdomain>.onelogin.com/auth/oauth2/v2/token, with the same subdomain. Only OneLogin token URLs in this form are accepted.
Client ID
The client ID of the OneLogin API credential.
Client secret
The client secret of the same API credential.

Use the Action configuration settings to customize connector networking, such as proxies, certificates, or TLS settings. You can set configurations that apply to all your connectors or use xpack.actions.customHostSettings to set per-host configurations. If you use the xpack.actions.allowedHosts setting, add <subdomain>.onelogin.com to it.

You can test connectors when you create or edit the connector in Kibana. The test requests an access token with the client ID and client secret, then reads one user to confirm that the API credential can read users.

The OneLogin connector exposes the following actions. Every action that acts on one user takes the numeric OneLogin user ID. Use listUsers to find it from an email address.

listUsers

Find users by email, username, or a list of user IDs. Returns users (each with its account status), nextCursor (null on the last page), and totalCount.

  • email (optional): Email address to match exactly, or a pattern with * as a wildcard, for example jane*.
  • username (optional): Username to match exactly.
  • userIds (optional): Comma-separated numeric user IDs without spaces, for example 12345678,23456789.
  • limit (optional): Users per page, from 1 to 50.
  • cursor (optional): The nextCursor value from the previous page. Keep the other parameters unchanged.
getUser

Get one user's profile and account state, including status, locked_until, last_login, password_changed_at, and role_ids.

  • userId (required): Numeric OneLogin user ID.
getUserApps

List the apps assigned to a user, with the app ID, name, the user's login ID in the app, and the provisioning status. Returns the whole list.

  • userId (required): Numeric OneLogin user ID.
  • ignoreVisibility (optional): Set to true to include apps hidden from the user's portal. Defaults to false.
getUserRoles

Get the IDs of the roles assigned to a user. Returns id and role_ids. role_ids is empty when the user has no roles.

  • userId (required): Numeric OneLogin user ID.
getEvents

List activity events, such as sign-ins, failed sign-ins, password changes, and account changes, newest first. Returns data and pagination. While pagination.has_more is true, pass pagination.next_cursor as afterCursor with the same filters to read the next page.

  • userId (optional): Returns only events that target this user.
  • eventTypeId (optional): Comma-separated OneLogin event type IDs, at most 100, for example 5,13.
  • since (optional): Start of the time window, in ISO 8601 format with a time zone, for example 2026-01-31T00:00:00Z.
  • until (optional): End of the time window, in ISO 8601 format with a time zone. Must be later than since and at most 365 days after it.
  • limit (optional): Events per page, from 1 to 100. Defaults to 50.
  • afterCursor (optional): The pagination.next_cursor value from the previous page.
lockUser

Lock a user's account so the user cannot sign in. The lock can take a few minutes to show as status 3 (Locked) in getUser. The lock ends after the given number of minutes, or when the user is unlocked with unlockUser. Needs the Manage All scope.

  • userId (required): Numeric OneLogin user ID.
  • lockedUntil (required): Minutes to lock the account, from 0 to 525,600 (365 days). 0 uses the lock period of the user's OneLogin policy. When the policy sets no lock period, the account stays locked until it is unlocked. OneLogin rejects a value below the policy's lock period.
logUserOut

End a user's OneLogin session, so the user must sign in again before opening new single sign-on sessions. The action does not end sessions already open in other apps. It also succeeds when the user has no active session.

  • userId (required): Numeric OneLogin user ID.
setPasswordCleartext

Set a new password for a user, replacing a compromised one. OneLogin rejects a password that does not meet the user's password policy. The action does not force the user to set another password at the next sign-in. Returns id, status, and password_changed_at. Needs the Manage All scope.

  • userId (required): Numeric OneLogin user ID.
  • password (required): The new password. A workflow saves each step's inputs with its execution, so in a workflow set a temporary password and have the user change it. The Run a connector API doesn't save it.
deleteUser

Permanently delete a user. You cannot undo this action. Returns deleted: true, or deleted: false and notFound: true when the user does not exist.

  • userId (required): Numeric OneLogin user ID.
unlockUser

Unlock a locked user before the lock period ends, for example after a false positive. The action fails when OneLogin can't unlock the user, for example when the user isn't locked. Returns userId, unlocked: true, and OneLogin's message.

  • userId (required): Numeric OneLogin user ID.
  • OneLogin limits API calls per account. lockUser and logUserOut count toward the account-wide limit of 5,000 API version 1 calls per hour, which every API credential in the account shares.
  • A failed request fails the action with the HTTP status and the error message that OneLogin returned, for example Request failed with status code 422: User cannot be unlocked. The connector doesn't retry.