GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves custom attributes for a specific user from the GitLab API (version 4). It is useful for scenarios where you need to access or manage user-specific metadata stored as custom attributes in GitLab, such as in user management or automation workflows involving user data enrichment.

Use Case Examples

  1. Fetch custom attributes of a user by their user ID to display or process in an internal system.
  2. Automate user profile updates by first retrieving existing custom attributes before applying changes.

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.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters The path parameters for the API request, specifically the user ID to fetch custom attributes for.

Output

JSON

  • customAttributes - Array of custom attributes associated with the specified user.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to access user custom attributes.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 401 Unauthorized (due to invalid or missing API key) and 404 Not Found (if the user ID does not exist). Resolving these involves correcting credentials or user ID respectively.

Links

Discussion