GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a custom attribute for a specific user in GitLab using 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 information or add custom tags to users 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 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 endpoints.
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 can be set to PUT for this operation.
Path Parameters Parameters 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.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the user ID and custom attribute key are correctly specified; otherwise, the API may return a 404 Not Found error.
  • Authentication errors may occur if the API token is missing or invalid; verify the credentials are correctly configured.
  • The base URL must be correct for the GitLab instance being accessed; incorrect URLs will cause connection failures.

Links

Discussion