Get Device Last User
ninjaone_get_device_last_userRetrieve the last logged-on user for a device and the timestamp of that logon to identify recent account activity.
Instructions
Get the last logged-on user of one device and when they logged on.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>"
},
"name": "ninjaone_get_device_last_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device id (from ninjaone_list_devices or ninjaone_search_devices). |