Description
Extract login information from the gn_LoginTable.
Parameters (* denotes an optional parameter)
UserIds*
A comma-separated list of user ids.
Logins*
A comma separated list of GUIDs. The GUIDs correspond to the login session, that is, the ticket assigned when the user logged in.
From*
Optional specification of starting date/time. Uses a properly constructed date-time condition, e.g., cmd=LoginData&from=2009-12-04T12:04:00Z for GMT time, or cmd=LoginData&from=2009-12-04T01:04:00 to search by local system time.
To*
Optional specification of ending date/time. Uses a properly constructed date-time condition, e.g., cmd=LoginData&to=2009-12-04T12:04:00Z for GMT time, or cmd=LoginData&to=2009-12-04T01:04:00 to search by local system time.
X*
An optional string parameter specifying the name of an XSL transformation to be applied to the XML. The XSL transformation must be loaded in the database.
Example
Example 1: This example requests all current login information.
http://gnhost.teradp.com/MyPortal/do.ashx?Cmd=LoginData
<?xml version="1.0" encoding="utf-8" ?>
<LoginEntryList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Login.xsd">
<LoginEntry
login="ed9acc85-9910-416f-ad8d-612d4c8d1479"
time="2010-01-18T18:51:13.923Z"
userId="4" userDesc="administrator"
clientIP="127.0.0.1" remoteIP="127.0.0.1"
clientAppName="WebBrowser" serverAppName="gnpc"
lastAccess="2010-01-18T18:51:13.923Z">
<Data>
<LoginRestoreData
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
cultureName="en-GB" uiCultureName="en-GB" session="Client" xmlns="">
</LoginRestoreData>
</Data>
</LoginEntry>
<LoginEntry
login="d6721dd0-027c-49a1-aae9-134c83c248a3"
time="2010-01-19T20:30:48.900Z"
userId="14" userDesc="editor"
clientIP="192.168.9.104" remoteIP="192.168.9.104"
serverAppName="gnpc"
lastAccess="2010-01-19T20:30:48.900Z" />
</LoginEntryList>
Example 2: This example requests all logins since a given time.
http://gnhost.teradp.com/MyPortal/do.ashx?Cmd=LoginData&from=2010-01-19T20:30:48.900Z
<?xml version="1.0" encoding="utf-8" ?>
<LoginEntryList
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.teradp.com/schemas/GN4/1/Login.xsd">
<LoginEntry
login="d6721dd0-027c-49a1-aae9-134c83c248a3"
time="2010-01-19T20:30:48.900Z"
userId="14" userDesc="editor"
clientIP="192.168.9.104" remoteIP="192.168.9.104"
serverAppName="gnpc"
lastAccess="2010-01-19T20:30:48.900Z" />
</LoginEntryList>
See also