NinjaOne icon

NinjaOne

Interact with the NinjaOne API

Device → Get Last Logged On User

AI-generated

Overview

This node interacts with the NinjaOne API to retrieve the last logged on user information for a specified device. It is useful in IT management scenarios where administrators need to track user activity on devices managed through NinjaOne. For example, it can be used to audit device usage or troubleshoot user-specific issues by identifying the last user who logged into a device.

Use Case Examples

  1. Retrieve the last logged on user for a device to audit user activity.
  2. Get the last logged on user to troubleshoot access issues on a specific device.

Properties

Name Meaning
Device ID ID of the device for which to get the last logged on user.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • lastLoggedOnUser - Information about the last user who logged on to the specified device.

Dependencies

  • NinjaOne API with OAuth2 authentication

Troubleshooting

  • Ensure the Device ID is correct and the device exists in NinjaOne; otherwise, the API may return an error or empty result.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL certificate validation fails and the option to ignore SSL issues is not enabled, the request will be blocked.
  • API rate limits may affect performance if batching is not configured properly.

Discussion