GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific impersonation token for a user in GitLab. It is useful for managing user access by revoking impersonation tokens that allow actions on behalf of the user. For example, an admin can use this to remove a compromised or no longer needed impersonation token to enhance security.

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 Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The 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 identify the user and the impersonation token to delete.

Output

JSON

  • success - Indicates if the deletion was successful.
  • statusCode - HTTP status code returned from the API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user_id and impersonation_token_id are correct and exist in GitLab.
  • Check that the API key has sufficient permissions to delete impersonation tokens.
  • Common error: 404 Not Found - The user or impersonation token does not exist.
  • Common error: 401 Unauthorized - Authentication failed or API key is invalid.

Links

Discussion