Download Reports with AccessSessionListing

The AccessSessionListing query returns a list of session IDs, external keys, and availability of a recording for sessions which match given search parameters. You may use any of the following sets of parameters to generate reports:

  • start_date and duration
  • start_time and duration
  • end_date and duration
  • end_time and duration

The reporting API is an authenticated API. For instructions on using authenticated APIs using OAuth, see Authenticate to the Privileged Access API. The API account used to call this report must have access to the reporting API.

Parameters for AccessSessionListing

start_date=[YYYY-MM-DD] Specifies that the report should return all sessions, even those still in progress, that began on or after this date and that are within the duration specified below.
start_time=[timestamp] Specifies that the report should return all sessions, even those still in progress, that began at or after this time and that are within the duration specified below. The time must be a UNIX timestamp (UTC).
end_date=[YYYY-MM-DD] Specifies that the report should return only closed sessions that ended on or after this date and that are within the duration specified below.
end_time=[timestamp] Specifies that the report should return only closed sessions that ended at or after this time and that are within the duration specified below. The time must be a UNIX timestamp (UTC).
duration=[integer] Length of time from the specified date or time for which you wish to pull reports, or 0 to pull from the specified date to present. If start_date or end_date is specified, duration represents days; if start_time or end_time is specified, duration represents seconds.

XML Response for AccessSessionListing Query

<session_summary_list> Contains a <session_summary> element for each session that matches the given criteria. If no sessions are returned, this element will contain no <session_summary> elements. If an error occurs during the search, it will contain an <error> element describing the problem.

Element Names and Attributes

/session_summary_list/session_summary
lsid (attribute) The session ID for the given session.
has_recording (attribute) Integer (1 or 0) indicating if the given session has a session recording.
external_key (attribute) An arbitrary string that can link this session to an identifier on an external system, such as a customer relationship management ticket ID. This can be input from within the access console or defined programmatically. This element is displayed only if an external key has been defined.

Query Examples for AccessSessionListing

Sessions started July 1 2016 to present
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    start_date=2016-07-01&duration=0
Sessions started the month of July 2016
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    start_date=2016-07-01&duration=31
Sessions started 8:00 AM July 1 2016 to present
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    start_time=1467360000&duration=0
Sessions started 8:00 AM July 1 2016 to 6:00 PM July 1 2016
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    start_time=1467360000&duration=36000
Sessions ended July 1 2016 to present
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    end_date=2016-07-01&duration=0
Sessions ended the month of July 2016
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    end_date=2016-07-01&duration=31
Sessions ended 8:00 AM July 1 2016 to present
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    end_time=1467360000&duration=0
Sessions ended 8:00 AM July 1 2016 to 6:00 PM July 1 2016
  • https://access.example.com/api/reporting?
    generate_report=AccessSessionListing&
    end_time=1467360000&duration=36000