> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Active Sessions

Get all currently active sessions.

<Note>
  External Documentation

  To learn more, visit the [CyberArk documentation](https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/getlivesessions.htm).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                          |
  | --------- | -------------------------------------------------------------------- |
  | From Time | Filter live sessions that started after the specified time stamp.    |
  | Safe Name | Filter live sessions that use accounts from a specific safe.         |
  | Search    | Filter records by properties that contain the specified search text. |
  | Sort      | The property by which to sort the retrieved results.                 |
  | To Time   | Filter live sessions that started before the specified time stamp.   |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter  | Description                                                       |
  | ---------- | ----------------------------------------------------------------- |
  | Activities | Filter live sessions by specified activity IDs.                   |
  | Limit      | The maximum number of items to retrieve per request (zero-based). |
  | Offset     | The index of the first result to retrieve.                        |
</div>

## Example Output

```json theme={"dark"}
{
  "LiveSessions": [
    {
      "CanTerminate": <true/false>,
      "CanMonitor": <true/false>,
      "CanSuspend": <true/false>,
      "SessionID": "<session id>",
      "SessionGuid": "<session guid>",
      "SafeName": "<Safe name>",
      "FolderName": "<folder>",
      "IsLive": <true/false>,
      "FileName": "<file name>",
      "Start": <timestamp>,
      "End": <timestamp>,
      "Duration": <seconds>,
      "User": "<user>",
      "RemoteMachine": "<IP address>",
      "ProtectionDate": <timestamp>,
      "ProtectedBy": "User who protected the recording",
      "ProtectionEnabled": <true/false>,
      "AccountUsername": "<user>",
      "AccountPlatformID": "<platform ID>",
      "AccountAddress": "<timestamp>",
      "PIMSuCommand": "<command>",
      "PIMSuCWD": "<Current Working Directory>",
      "ConnectionComponentID": "<ID>",
      "PSMRecordingEntity": "<Recording entity>",
      "TicketID": "<ID>",
      "FromIP": "<timestamp>",
      "Protocol": "<protocol>",
      "Client": "<client>",
      "RiskScore": <score>,
      "Severity": "<severity>",
      "IncidentDetails": <details>,
      "RawProperties": {
        "Address": "<IP address>",
        "ConnectionComponentID": "ID",
        "DeviceType": "device type",
        "EntityVersion": "<version>",
        "ExpectedRecordingsList": "<list>",
        "PolicyID": "<policy ID>",
        "ProviderID": "<ID>",
        "PSMClientApp": "<PSMClientApp>",
        "PSMPasswordID": "<ID>",
        "PSMProtocol": "<protocol>",
        "PSMRecordingEntity": "<PSMRecordingEntity>",
        "PSMRemoteMachine": "<timestamp>",
        "PSMSafeID": "<ID>",
        "PSMSourceAddress": "<timestamp>",
        "PSMStartTime": "<timestamp>",
        "PSMStatus": "Placeholder",
        "PSMVaultUserName": "<user>",
        "UserName": "<user>",
        "Safe": "<Safe>",
        "Folder": "<folder>",
        "Name": "<session name>"
      },
      "RecordingFiles": [<files>],
      "RecordedActivities": [<activities>],
      "VideoSize": <size>,
      "TextSize": <size>,
      "DetailsUrl": "<URL>"
    }
  ],
  "Total": <total>
}
```

## Workflow Library Example

[List Active Sessions with Cyberark and Send Results Via Email](https://library.blinkops.com/workflows/list-active-sessions-with-cyberark-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-active-sessions-with-cyberark-and-send-results-via-email/canvas" />
</div>
