AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node interacts with the AvantGuard NinjaOne API to retrieve information about devices managed within the system. Specifically, the "Get Device Last Logged On User" operation fetches details about the most recent user who logged onto a specified device. This can be useful in IT asset management scenarios where tracking user activity on devices is important for security audits, compliance, or troubleshooting.

Practical examples include:

  • Identifying which user last accessed a particular workstation.
  • Auditing device usage patterns by correlating devices and users.
  • Supporting helpdesk operations by quickly finding the last user of a device when investigating issues.

Properties

Name Meaning
Id The unique identifier of the device for which to retrieve the last logged-on user. Must be provided as a number.

Output

The node outputs JSON data containing details about the last user who logged onto the specified device. The exact structure depends on the API response but typically includes user identification fields such as username, user ID, login timestamp, and possibly additional metadata related to the login event.

If the node supports binary data output (not indicated here), it would represent any associated files or attachments related to the user or device login event.

Dependencies

  • Requires an active connection to the AvantGuard NinjaOne API.
  • Needs an API authentication token or key configured in the node credentials to authorize requests.
  • The base URL for the API must be set in the node's credential configuration.

Troubleshooting

  • Missing or invalid device Id: Ensure that the "Id" property is provided and corresponds to a valid device in the system.
  • Authentication errors: Verify that the API key or token is correctly configured and has sufficient permissions.
  • Network or connectivity issues: Confirm that the base URL is reachable from the n8n environment.
  • API rate limits or service downtime: Check the NinjaOne service status if requests fail repeatedly.

Common error messages might include unauthorized access, resource not found (if the device ID does not exist), or bad request due to malformed input.

Links and References

Discussion