GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the custom attributes of a specific user from the GitLab API (version 4). It is useful for scenarios where you need to access user-specific metadata stored as custom attributes in GitLab, such as for user management, reporting, or integration purposes.

Use Case Examples

  1. Fetch custom attributes for a user with a given user ID to display or process additional user information stored in GitLab.
  2. Integrate with GitLab to automate workflows that depend on user custom attributes, like syncing user data with other systems.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API endpoints.
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 HTTP method to use for the API request, defaulting to GET.
Path Parameters Parameters to be included in the API request path, specifically the user ID to identify which user's custom attributes to retrieve.

Output

JSON

  • id - The ID of the user whose custom attributes are retrieved.
  • custom_attributes - The list or object containing the user's custom attributes returned by the GitLab API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access user custom attributes.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion