Twingate icon

Twingate

Interact with Twingate GraphQL API

Actions28

User → Get Many

AI-generated

Overview

This node interacts with the Twingate GraphQL API to manage users. Specifically, the 'Get Many' operation under the 'User' resource retrieves multiple user records. It supports fetching all users or limiting the number of users returned. This is useful for scenarios where you need to list users for administrative purposes, reporting, or synchronization with other systems.

Use Case Examples

  1. Retrieve all users in the Twingate system to generate a user report.
  2. Fetch a limited number of users to display in a dashboard or UI component.

Properties

Name Meaning
Return All Whether to return all user results or only up to a given limit.
Limit Maximum number of user results to return when 'Return All' is false.

Output

JSON

  • id - Unique identifier of the user.
  • email - Email address of the user.
  • firstName - First name of the user.
  • lastName - Last name of the user.
  • role - Role assigned to the user (e.g., Admin, Member).
  • state - Current state of the user account.
  • type - Type classification of the user.
  • createdAt - Timestamp when the user was created.
  • updatedAt - Timestamp when the user was last updated.

Dependencies

  • Requires Twingate API credentials including network name and API token for authentication.

Troubleshooting

  • Common issues include API authentication failures due to invalid or missing API tokens.
  • GraphQL errors may occur if query parameters are incorrect or if the user ID does not exist.
  • Rate limiting or network errors can cause request failures; ensure network connectivity and API limits are respected.

Links

Discussion