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.
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.
- Sign in to the PingOne admin console and open the environment whose users the connector manages.
- Go to Applications → Applications and add an application of type Worker.
- On the application's Configuration tab, set Token Endpoint Authentication Method to Client Secret Basic.
- 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.
- Enable the application.
- 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, oremail(exact match). Ausernameoremailthat matches no user fails with a not found error, and one that matches more than one user fails and asks for theuserId.Returns:
id,username,email,enabled,mfaEnabled, andpopulation.id.lifecycle.status,account.status(OKorLOCKED), andaccount.canAuthenticate.- The password state in
credentialState.status(OK,NO_PASSWORD,PASSWORD_EXPIRED,PASSWORD_LOCKED_OUT,MUST_CHANGE_PASSWORD, orEXTERNAL) withcredentialState.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 withcredentialState: nulland the reason incredentialStateError.
disableUser- Disables a user so the user can no longer sign on, and returns
userIdandenabled. It does not end existing sessions: userevokeUserSessions. RununlockUserandforcePasswordChangebefore disabling, because PingOne refuses both for a disabled user. Disabling a user who is already disabled succeeds. Undo withenableUser. enableUser- Enables a user so the user can sign on again, for example after a false positive, and returns
userIdandenabled. 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,lastSignOnwith the sign-on time and IP address, and thebrowser,device, andlocationthat PingOne recorded. ReturnsuserId,count, andsessions. 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, anddeletedSessionIds. A user with no sessions succeeds withsessionsFound: 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 withlistUserSessions. forcePasswordChange- Forces a user to set a new password at the next sign-on, and returns
userIdand the passwordstatus. The password state becomesMUST_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.
unlockTypeispassword(clears a password lockout after failed sign-ons),account(clears an account lock), orboth(default). Withboth, the password unlock runs first, then the account unlock, and the action fails when either fails. Returnsoperations, one result per unlock, andaccount.statusafter 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, andtype.DIRECTmemberships can be removed withremoveUserFromGroup.INDIRECTones come from the group's user filter.limitsets the page size, 1 to 1,000. Returns one page withcount,size, andnext. addUserToGroup- Adds a user to a group as a direct member, for example a quarantine group, and returns
userIdand the membershipid,name, andtype. 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 withremoveUserFromGroup. removeUserFromGroup- Removes a user's direct membership of a group, and returns
userId,groupId, andremoved. AnINDIRECTmembership can't be removed this way. PingOne's error is returned unchanged. Undo withaddUserToGroup. listMfaDevices- Lists a user's MFA devices to spot a rogue enrollment:
id,type(for exampleSMS,EMAIL,TOTP,MOBILE, orFIDO2),status(ACTIVEorACTIVATION_REQUIRED),block.status,lock.status,nickname,displayName, the phone number or email, and dates. Remembered browsers are returned inaccessingDevices.limitrequests a page size, 1 to 1,000. PingOne may not apply it, so a page can hold more devices than requested. Returns one page withcount,size, andnext. deleteMfaDevice- Deletes one MFA device of a user, for example a rogue device, and returns
userId,deviceId, anddeleted. 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 fromlistMfaDevices. searchAuditActivities-
Searches the audit log of the environment between
startTime(inclusive) andendTime(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), oractionType(for exampleUSER.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. limitrequests 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
activitieswithid,recordedAt,correlationId,action,actors,resources, andresult, andnext.
- Narrow the search with at most one of
- Pagination.
getUserGroups,listMfaDevices, andsearchAuditActivitiesreturn one page per call and PingOne's next link innext, ornullon the last page. Pass the link back asnextLinkto read the next page, withoutlimit(the link already carries the page size) and, forsearchAuditActivities, without any other input.listUserSessionsisn't paged: PingOne documents at most 10 sessions per user. - Identifiers.
userId,groupId,deviceId,actorUserId, andresourceIdmust 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, andservice_message:statusiserrorwhen the action fails, andservice_messageholds the reason when the token endpoint rejects the credentials. PingOne's HTTP status is inerror_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 agetUserlookup 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
disableUserandrevokeUserSessions. - 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.