NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

Actions120

Device → Get Last Logged-On User

AI-generated

Summary

Fetches the last logged-on user for a specified NinjaOne device using the NinjaOne API. Configure the authentication method and provide the required Device ID; the operation makes a GET request and returns the API response.

Inputs

  • Authentication (required) — Choose OAuth2 (Authorization Code) or Client Credentials and configure the corresponding NinjaOne credentials.
  • Device ID (required) — Numeric ID of the device whose last logged-on user you want to retrieve.

Output shape

A single record for each input item.

Each API response is returned as one n8n item’s JSON. If the API returns no response body, the node returns {"success":true}; with Continue On Fail enabled, an error is returned in an item’s error field.

Links

Discussion