GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to update a custom attribute for a specific user by their user ID and attribute key. It is useful in scenarios where you need to programmatically modify user metadata stored as custom attributes in GitLab, such as updating user profile details or custom settings.

Use Case Examples

  1. Updating a user's custom attribute to reflect a new role or permission level.
  2. Changing a custom attribute value to track user-specific configurations or preferences.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method HTTP method to use for the request, default is PUT for updating resources.
Path Parameters Parameters included in the request path to specify the user ID and the custom attribute key to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the custom attribute, typically including the updated attribute details.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the user ID and custom attribute key are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API token has sufficient permissions to update user custom attributes to prevent authorization errors.
  • Check the base URL is correctly set to the GitLab instance URL to avoid connection issues.

Links

Discussion