PingOne connector

Use the PingOne connector to look up a user and review the user's sessions, group memberships, and multi-factor authentication (MFA) devices, and to search the audit log of a PingOne environment. Actions that change data can disable or enable a user, end sessions, and force a password change. They can also unlock a user, change group membership, and delete an MFA device. The connector works with PingOne, the cloud (SaaS) service from Ping Identity, through the PingOne Platform API of your environment's region.

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 PingOne 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 worker application has write permissions. 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, and for a connector that only agents should use, give its worker application read-only roles.

You can create connectors in Stack Management → Connectors.

The connector signs in as a PingOne worker application with the OAuth 2.0 client credentials grant.

  1. Sign in to the PingOne admin console and open the environment whose users the connector manages.
  2. Go to Applications → Applications and add an application of type Worker.
  3. On the application's Configuration tab, set Token Endpoint Authentication Method to Client Secret Basic.
  4. On the Roles tab, grant a role that holds the permissions of the actions you plan to use, scoped to this environment or to the populations of the users the connector manages. Required permissions lists the permission of each action. A worker application without a role can't get an access token.
  5. Enable the application.
  6. Copy the Client ID, the Client Secret, the Environment ID, and the token endpoint (https://auth.pingone.<top-level domain>/<environment ID>/as/token) into the connector.

PingOne connectors have the following configuration properties:

Region
The PingOne region of your environment. The default is North America. The connector builds the API address from the region, as in the following table.
Region API address Token host
North America https://api.pingone.com (default) auth.pingone.com
Canada https://api.pingone.ca auth.pingone.ca
European Union https://api.pingone.eu auth.pingone.eu
Australia https://api.pingone.com.au auth.pingone.com.au
Singapore https://api.pingone.sg auth.pingone.sg
Asia-Pacific https://api.pingone.asia auth.pingone.asia
Environment ID
The ID (a universally unique identifier, UUID) of the PingOne environment whose users the connector manages. This is usually the environment of the worker application. It can differ when the application's role is assigned at the organization level or in another environment.
Token URL
The token endpoint of the environment where the worker application lives: https://auth.pingone.<top-level domain>/<environment ID>/as/token. Use the token host of your region from the table. Only these PingOne token hosts are accepted.
Client ID
The client ID of the PingOne worker application.
Client secret
The client secret of the same worker application. The connector sends the client ID and secret with HTTP Basic authentication to the token URL and requests no scope: the application's role assignments decide what it may do.

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. The hosts of the API address and of the token URL must be in the Kibana allowed hosts list (xpack.actions.allowedHosts).

You can test connectors when you create or edit the connector in Kibana. The test gets an access token and reads one user of the environment. It confirms the token URL, the client credentials, the region, the environment ID, and the dir:read:user permission. A 403 means the application's role is missing, or is scoped to another environment or population.

The PingOne connector exposes the following actions:

getUser

Looks up one user by exactly one of userId, username, or email (exact match). A username or email that matches no user fails with a not found error, and one that matches more than one user fails and asks for the userId.

Returns:

  • id, username, email, enabled, mfaEnabled, and population.id.
  • lifecycle.status, account.status (OK or LOCKED), and account.canAuthenticate.
  • The password state in credentialState.status (OK, NO_PASSWORD, PASSWORD_EXPIRED, PASSWORD_LOCKED_OUT, MUST_CHANGE_PASSWORD, or EXTERNAL) with credentialState.lastChangedAt. The connector reads the state of the password, never the password itself. If the worker application can't read the password state, the profile is still returned with credentialState: null and the reason in credentialStateError.
disableUser
Disables a user so the user can no longer sign on, and returns userId and enabled. It does not end existing sessions: use revokeUserSessions. Run unlockUser and forcePasswordChange before disabling, because PingOne refuses both for a disabled user. Disabling a user who is already disabled succeeds. Undo with enableUser.
enableUser
Enables a user so the user can sign on again, for example after a false positive, and returns userId and enabled. It does not change an account lock or the password state. Enabling a user who is already enabled succeeds.
listUserSessions
Lists the sessions PingOne holds for a user, newest first, expired sessions included. PingOne documents at most 10 sessions per user. Each session has its id, createdAt, activeAt, lastSignOn with the sign-on time and IP address, and the browser, device, and location that PingOne recorded. Returns userId, count, and sessions.
revokeUserSessions

Ends every session PingOne holds for a user. PingOne has no single call for this, so the connector lists the user's sessions and deletes them one by one, in list order. Returns sessionsFound, deletedCount, and deletedSessionIds. A user with no sessions succeeds with sessionsFound: 0.

Access and refresh tokens that applications already hold can stay valid after a session ends, so combine this action with disableUser. A session that starts after the connector lists the sessions isn't ended, so check with listUserSessions.

forcePasswordChange
Forces a user to set a new password at the next sign-on, and returns userId and the password status. The password state becomes MUST_CHANGE_PASSWORD, and the current password keeps working until the user changes it. It also clears a password lockout and resets the MFA lockout counter, but not an account lock. PingOne refuses it for a disabled user (ACCOUNT_NOT_USABLE).
unlockUser
Unlocks a user. unlockType is password (clears a password lockout after failed sign-ons), account (clears an account lock), or both (default). With both, the password unlock runs first, then the account unlock, and the action fails when either fails. Returns operations, one result per unlock, and account.status after an account unlock. Unlocking does not enable a disabled user: PingOne refuses it (ACCOUNT_NOT_USABLE).
getUserGroups
Lists a user's group memberships: the group id, name, isExternal, and type. DIRECT memberships can be removed with removeUserFromGroup. INDIRECT ones come from the group's user filter. limit sets the page size, 1 to 1,000. Returns one page with count, size, and next.
addUserToGroup
Adds a user to a group as a direct member, for example a quarantine group, and returns userId and the membership id, name, and type. The user also gets the roles and access that the group carries. The group must be in the user's population or environment-wide. PingOne refuses access-request groups, external groups that aren't provisioned, and groups with more than 10,000 direct members. Undo with removeUserFromGroup.
removeUserFromGroup
Removes a user's direct membership of a group, and returns userId, groupId, and removed. An INDIRECT membership can't be removed this way. PingOne's error is returned unchanged. Undo with addUserToGroup.
listMfaDevices
Lists a user's MFA devices to spot a rogue enrollment: id, type (for example SMS, EMAIL, TOTP, MOBILE, or FIDO2), status (ACTIVE or ACTIVATION_REQUIRED), block.status, lock.status, nickname, displayName, the phone number or email, and dates. Remembered browsers are returned in accessingDevices. limit requests a page size, 1 to 1,000. PingOne may not apply it, so a page can hold more devices than requested. Returns one page with count, size, and next.
deleteMfaDevice
Deletes one MFA device of a user, for example a rogue device, and returns userId, deviceId, and deleted. A deleted device can't be restored: the user must enroll it again. Deleting the user's only device can leave the user without that factor. Get the device ID from listMfaDevices.
searchAuditActivities

Searches the audit log of the environment between startTime (inclusive) and endTime (exclusive), both ISO 8601 date-times with a time zone and at most three fractional digits (milliseconds), which the connector converts to UTC. Only data in PingOne's activity store is searched. A 400 error that asks to narrow the time range means the range is too large.

  • Narrow the search with at most one of actorUserId (the user who acted), resourceId (the user or object acted on), or actionType (for example USER.ACCESS_ALLOWED). PingOne accepts one of these filters per search, so to see both what a user did and what was done to the user, run two searches.
  • limit requests a page size, 1 to 1,000. PingOne may not apply it, and a page holds up to 100 activities by default.
  • Returns one page of activities with id, recordedAt, correlationId, action, actors, resources, and result, and next.
  • Pagination. getUserGroups, listMfaDevices, and searchAuditActivities return one page per call and PingOne's next link in next, or null on the last page. Pass the link back as nextLink to read the next page, without limit (the link already carries the page size) and, for searchAuditActivities, without any other input. listUserSessions isn't paged: PingOne documents at most 10 sessions per user.
  • Identifiers. userId, groupId, deviceId, actorUserId, and resourceId must be UUIDs.
  • Errors. A failed request fails the action with the HTTP status PingOne returned. The connector doesn't retry. In the response of Run a connector, check status, message, and service_message: status is error when the action fails, and service_message holds the reason when the token endpoint rejects the credentials. PingOne's HTTP status is in error_meta.statusCode, not in the HTTP status of the response, and only when PingOne answered: it is absent when, for example, the token endpoint rejects the credentials or a getUser lookup finds no match.

Each action needs the permissions in the following table in a role of the worker application, scoped to the environment or to the populations of the users the connector manages. A user outside the role's populations gets a 403 error.

Action Permissions
Connection test dir:read:user
getUser dir:read:user, plus dir:read:userPassword for the password state
disableUser dir:update:userEnabled
enableUser dir:update:userEnabled
listUserSessions authn:read:sessions
revokeUserSessions authn:read:sessions (the connector lists the sessions first) and authn:delete:sessions
forcePasswordChange dir:forceChange:userPassword
unlockUser dir:unlock:userPassword (password unlock) and dir:unlock:userAccount (account unlock)
getUserGroups dir:read:groupMembership
addUserToGroup dir:create:groupMembership
removeUserFromGroup dir:delete:groupMembership
listMfaDevices mfa:read:device
deleteMfaDevice mfa:delete:device
searchAuditActivities audit_reporting:read:activity
  • PingOne limits requests per license and per rate-limit group, shared by all environments of the license. The Audit API allows 10 requests per second, and PingOne advises against it for high-throughput use.
  • Unlocking is a recovery step, not containment: unlocking an enabled account restores sign-in. For containment, run disableUser and revokeUserSessions.
  • An administrator can't change its own membership of a group that carries administrator roles.
  • Changing a user's population removes the user from the groups of the old population.