GitLab API icon

GitLab API

Gitlab

Actions880

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 in GitLab to update user metadata.
  2. Removing a custom attribute 'project_role' 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.
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 DELETE is used for this operation.
Path Parameters Parameters required in the URL path to specify the user ID and the key of the custom attribute to delete.

Output

JSON

  • statusCode - HTTP status code returned by the API indicating the result of the delete operation.
  • responseBody - The body of the response from the API, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user ID and custom attribute key are correct and exist in GitLab to avoid 404 errors.
  • Check that the API token has sufficient permissions to delete user custom attributes to avoid authorization errors.
  • Verify the base URL is correct for the GitLab instance being accessed.

Links

Discussion