get_logins_for_server
Gets logins for a server.
Path:
/lib/server/get_logins_for_server.js
Parameters:
None.
Example Request:
POST /redrock/query
{
"Script":"@/lib/server/get_logins_for_server.js"
}
Example Response:
{
"success": true,
"Result": {
"IsAggregate": false,
"Count": 17,
"Columns": [
{
"Name": "Longitude",
"IsHidden": false,
"DDName": null,
"Title": "Longitude",
"DDTitle": null,
"Description": null,
"Type": 16,
"Format": null,
"Width": 0,
"TableKey": null,
"ForeignKey": null,
"TableName": ""
},
{
"Name": "Latitude",
"IsHidden": false,
"DDName": null,
"Title": "Latitude",
"DDTitle": null,
"Description": null,
"Type": 16,
"Format": null,
"Width": 0,
"TableKey": null,
"ForeignKey": null,
"TableName": ""
},
...
],
"FullCount": 17,
"Results": [
{
"Entities": [],
"Row": {
"Name": "[email protected] - ",
"Detail": "[email protected] logged in to system \"test1-2012r2-1\"(test-2012r2-1) using account \"Administrator\" via NativeRdp",
"Longitude": -100.21099,
"EventType": "Cloud.Server.Account.SessionStart",
"When": "/Date(1522424127279)/",
"AuditId": "2329e...",
"Latitude": 37.491394
}
},
{
"Entities": [],
"Row": {
"Name": "[email protected] - ",
"Detail": "[email protected] logged in to system \"mark-win-2016\"(11.22.33.444) using local account \"administrator\" via Rdp",
"Longitude": 100.149,
"EventType": "Cloud.Server.LocalAccount.SessionStart",
"When": "/Date(1522027175697)/",
"AuditId": "82931",
"Latitude": 21.2832
}
}
],
"ReturnID": ""
},
"Message": null,
"MessageID": null,
"Exception": null,
"ErrorID": null,
"ErrorCode": null,
"InnerExceptions": null
}
Updated almost 5 years ago