NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Groups → Get Group Device Ids

AI-generated

Overview

This node interacts with the NinjaOne API to retrieve device IDs associated with a specific group. It is useful in scenarios where you need to manage or analyze devices grouped under certain categories within NinjaOne, such as inventory management, monitoring, or automation workflows that depend on group membership.

For example, you might use this node to:

  • Fetch all device IDs belonging to a particular group to perform batch operations.
  • Integrate with other systems by exporting group device lists.
  • Automate alerts or reports based on devices in specific groups.

Properties

Name Meaning
Id The unique identifier of the group for which to retrieve device IDs. This is a required numeric input.

Output

The node outputs an array of JSON objects, each representing the response from the NinjaOne API for the requested group. The main output field json contains the data returned by the API call to fetch device IDs for the specified group.

The exact structure of the JSON depends on the NinjaOne API response but typically includes a list or collection of device identifiers associated with the group.

No binary data output is produced by this operation.

Dependencies

  • Requires an active NinjaOne API OAuth2 authentication credential configured in n8n.
  • Depends on network access to the NinjaOne API endpoint.
  • Uses the NinjaOne API version 2 endpoints internally.

Troubleshooting

  • Missing or invalid Group Id: Ensure the "Id" property is set correctly and corresponds to an existing group in NinjaOne.
  • Authentication errors: Verify that the NinjaOne API credentials are valid and have sufficient permissions.
  • API request failures: Network issues or NinjaOne service outages can cause errors; check connectivity and NinjaOne status.
  • Error messages: If the node throws errors related to missing binary data, it indicates misuse of properties intended for other operations (not relevant here). For API errors, review the error message for HTTP status codes or details.

Links and References

Discussion