GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a custom attribute for a specific user in GitLab using the GitLab API. It is useful for managing user metadata by removing custom attributes that are no longer needed or relevant. For example, an admin can use this operation to clean up user profiles by deleting outdated or incorrect custom attributes.

Use Case Examples

  1. Deleting a custom attribute 'department' for a user with ID 123 to update user metadata.
  2. Removing a custom attribute 'projectRole' from a user profile to reflect changes in project assignments.

Properties

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

Output

JSON

  • success - Indicates whether the custom attribute was successfully deleted.
  • statusCode - HTTP status code returned by the API indicating the result of the delete operation.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the user ID and custom attribute key are correctly specified; incorrect values will cause the API to return errors such as 404 Not Found.
  • Authentication errors may occur if the GitLab API credentials are missing or invalid; verify credentials are correctly configured.
  • Network or base URL issues can cause connection failures; confirm the base URL is correct and accessible.

Links

Discussion