GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a user's information in GitLab by sending a PUT request to the GitLab API endpoint `/api/v4/users/{id}`. It is useful for scenarios where you need to modify user details such as name, email, or other user attributes programmatically within an n8n workflow.

Use Case Examples

  1. Updating a user's email address in GitLab when their contact information changes.
  2. Modifying user roles or permissions by updating user details via the API.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to PUT for this operation.
Path Parameters Parameters included in the request path, specifically the user ID to identify which user to update.

Output

JSON

  • id - The unique identifier of the updated user.
  • username - The username of the updated user.
  • email - The email address of the updated user.
  • name - The full name of the updated user.
  • state - The state of the user (e.g., active, blocked).
  • created_at - The timestamp when the user was created.
  • updated_at - The timestamp when the user was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to update user details.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 401 Unauthorized (authentication failure), 404 Not Found (user ID does not exist), and 400 Bad Request (invalid request body). Resolving these involves verifying credentials, user ID, and request payload format.

Links

Discussion