GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to add email addresses to a specific user by their user ID. It is useful for automating user management tasks in GitLab, such as updating user contact information programmatically. For example, it can be used in workflows that synchronize user data from an external system to GitLab.

Use Case Examples

  1. Add a new email address to a GitLab user by specifying the user ID and the email details in the request body.
  2. Automate updating user emails in GitLab when user information changes in an HR system.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to specify in the URL path, specifically the user ID for this operation.

Output

JSON

  • id - The ID of the user to whom the email is being added.
  • emails - The list of email addresses associated with the user after the operation.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in GitLab to avoid 404 errors.
  • Verify that the authentication credentials are correctly configured to prevent authorization errors.
  • Check the request body schema to ensure the email data is correctly formatted as required by the GitLab API.

Links

Discussion