GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a custom attribute for a specific user in GitLab via the GitLab API. It is useful for managing user metadata by setting or modifying custom attributes identified by a key for a given user ID. For example, it can be used to update user profile details or add custom tags to user accounts programmatically.

Use Case Examples

  1. Updating a user's custom attribute 'department' to 'Engineering' by specifying the user ID and attribute key.
  2. Modifying a custom attribute value for a user to reflect changes in user roles or permissions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API endpoints.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters used in the API path to specify the user ID and the key of the custom attribute to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the user's custom attribute, containing the updated attribute details.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the user ID and custom attribute key are correctly specified; incorrect values will cause API errors.
  • Authentication errors may occur if the API credentials are missing or invalid; verify the GitLab API token is correctly configured.
  • HTTP method must be set to PUT for this operation; using other methods may result in failure.
  • The base URL must point to a valid GitLab instance; incorrect URLs will cause connection errors.

Links

Discussion