Find and Terminate a User Session

Number of APIs: 2

This activity shows you how to find and terminate a user session.

The following operations are supported by the PingOne APIs:

  • Read a user session
  • Delete a user session

Prerequisites

Workflow order of operations

To configure a simple login with a username and password, you must complete the following tasks:

  1. Make a GET request to /environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions to locate the current user session.

  2. Make a DELETE request to /environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions/{{UserSessionID}} to terminate the current user session.

  3. Make a GET request to /environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions to verify no sessions are found.

  1. Step 2: Delete the user session DELETE {{apiPath}}/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions/{{UserSessionID}}

  2. Step 3: Verify there are no active sessions GET {{apiPath}}/environments/{{envID}}/users/{{SimpleLoginUserID}}/sessions