get_user_activity_for_admin

Get all user activity for an admin.

Path:
/lib/get_user_activity_for_admin.js

Parameters:

NameTypeDescription
useridStringThe unique ID of the admin.
daysIntegerThe number of days to obtain user activity for.

Example Request:

POST /redrock/query

{
	"Script":"@/lib/get_user_activity_for_admin.js",
	ars:
	{
		"userid" : "128cadec-b5...",
		"days" : 5
	}
}

Example Response:

{
    "success": true,
    "Result": {
        "IsAggregate": false,
        "Count": 0,
        "Columns": [
            {
                "Name": "When",
                "IsHidden": false,
                "DDName": "WhenOccurred",
                "Title": "When",
                "DDTitle": "When Occurred",
                "Description": null,
                "Type": 3,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            {
                "Name": "Detail",
                "IsHidden": false,
                "DDName": "EventMessage",
                "Title": "Detail",
                "DDTitle": "Message",
                "Description": null,
                "Type": 12,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            ...
        ],
        "FullCount": 0,
        "Results": [],
        "ReturnID": ""
    },
    "Message": null,
    ...
}