Twingate icon

Twingate

Interact with Twingate GraphQL API

Actions28

User → Update

AI-generated

Overview

This node interacts with the Twingate GraphQL API to manage user data. Specifically, the 'Update' operation for the 'User' resource allows updating user details such as first name, last name, and role. This is useful in scenarios where user information needs to be modified programmatically, for example, updating a user's role or correcting their name in an automated workflow.

Use Case Examples

  1. Updating a user's first and last name after receiving updated information from an HR system.
  2. Changing a user's role from 'Member' to 'Admin' based on a promotion.

Properties

Name Meaning
User ID The unique identifier of the user to update, required to specify which user to modify.
First Name The new first name of the user to update.
Last Name The new last name of the user to update.
Role The new role of the user, selected from predefined roles such as Access Reviewer, Admin, DevOps, Member, or Support.

Output

JSON

  • id - The unique identifier of the updated user.
  • email - The email address of the updated user.
  • firstName - The updated first name of the user.
  • lastName - The updated last name of the user.
  • role - The updated role of the user.

Dependencies

  • Twingate GraphQL API

Troubleshooting

  • Ensure the provided User ID is correct and exists in the Twingate system to avoid errors.
  • Verify that the API token credential for Twingate is valid and has sufficient permissions to update user data.
  • Common error messages include GraphQL errors indicating invalid input or permission issues; check the error details for guidance.

Links

Discussion