GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific impersonation token for a user in GitLab. It is useful for managing user access and security by revoking tokens that are no longer needed or compromised. For example, an administrator can use this operation to remove an impersonation token associated with a user to prevent unauthorized access.

Use Case Examples

  1. Deleting an impersonation token for a user to revoke access.
  2. Managing user tokens to maintain security compliance.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the request path to identify the user and impersonation token to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body returned from the GitLab API after deleting the impersonation token.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user_id and impersonation_token_id path parameters are correctly set and valid integers.
  • Verify that the API key used for authentication has sufficient permissions to delete impersonation tokens.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common error messages include 401 Unauthorized (invalid or missing API key), 404 Not Found (user or token does not exist), and 403 Forbidden (insufficient permissions).

Links

Discussion