GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific impersonation token for a user in GitLab via the GitLab API. It is useful for managing user access and security by revoking impersonation tokens that allow acting on behalf of a user. For example, administrators can use this to remove tokens that are no longer needed or have been compromised.

Use Case Examples

  1. Deleting an impersonation token for a user to revoke access granted by that token.
  2. Automating user token management in GitLab to maintain security compliance.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used, defaulting to GitLab API key authentication.
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 identify the user and impersonation token to delete.

Output

JSON

  • success - Indicates whether the impersonation token was successfully deleted.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user_id and impersonation_token_id path parameters are correctly provided and valid integers.
  • Verify that the API key used has sufficient permissions to delete impersonation tokens for the specified user.
  • Common errors include 404 Not Found if the user or token does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion