NinjaOne Tool icon

NinjaOne Tool

Read NinjaOne data and create tickets - safe subset of the NinjaOne node for AI agents

Device → Get Last Logged-On User

AI-generated

Summary

Fetches the last logged-on user for a NinjaOne device using its device ID.

Inputs

  • Authentication — Choose OAuth2 (Authorization Code, the default) or Client Credentials; the matching NinjaOne credentials must be configured.
  • Device ID (required) — The numeric ID of the device to look up.

Output shape

A single item containing the API response object for the last logged-on user.

Makes a GET request to the device’s last-logged-on-user endpoint. If the API returns no response, the node outputs {"success":true}; with Continue On Fail enabled, errors are returned as an item containing an error message.

Links

Discussion