Zendesk Connector
Documentation
Version: 9
Documentation
Endpoint

Read User Sessions


Name

get_user_sessions

Description

Get information about user sessions. [API reference]

Parameters

Parameter Label Required Options Description
user_id user_id YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.
If the column you are looking for is missing, consider customizing Zendesk Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Zendesk Connector in API Source component to read data or in API Destination component to read/write data:

Read User Sessions using API Source

Zendesk
Read User Sessions
SSIS API Source - Read from table or endpoint

Read User Sessions using API Destination

Zendesk
Read User Sessions
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Read user sessions

SELECT * FROM get_user_sessions
WITH
(
    "user_id" = 'abcd-1234-user_id'
)

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Read user sessions

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_user_sessions
WITH
(
    "user_id" = ''abcd-1234-user_id''
)';

EXEC (@MyQuery) AT [LS_TO_ZENDESK_IN_GATEWAY];