List device user logins
list_device_user_loginsGet who logged in on the company's devices: the sessions of device users, newest first. Each has the device user (name, auth PIN, SSO or EXTERNAL = authenticated by the customer's own system, and that system's externalUserId), the asset (assetId, serial number, name), loginAt, logoutAt, expiresAt, open, and who reported the login and the logout: DEVICE (the Nomid agent on the device), API (the customer's system, through the Public API) or EXPIRY (the session expired). Use it for "who is using device X", "who used it on a date", "where is user Y logged in". Filter by asset (assetId or serialNumber), by user (deviceUserId or externalUserId), by open, and by when the session started (from, to); every filter is optional. An asset's sessions include those of earlier enrollments of the same hardware. Returns a tool error if no asset with that id or serial number exists in this company.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_device_user_logins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Only sessions that started before this ISO-8601 instant. | |
| from | No | Only sessions that started at or after this ISO-8601 instant, e.g. 2026-10-01T00:00:00Z. | |
| open | No | Only sessions still open (nobody logged out, not expired). Defaults to false. | |
| limit | No | Maximum number of sessions to return, newest first. Defaults to 50, capped at 200. | |
| assetId | No | Only sessions on this asset - its path name, as search_devices/get_device return it. Not together with serialNumber. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| deviceUserId | No | Only sessions of this device user, by its Nomid id (deviceUser.id in a result). | |
| serialNumber | No | Only sessions on the asset with this serial number. Not together with assetId. | |
| externalUserId | No | Only sessions of the EXTERNAL device user with this id from the customer's own system. |