GitLab API

GitlabTool

Actions905

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 API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to DELETE for this operation.
Path Parameters Parameters required in the API request 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 set and valid integers.
  • Verify that the API key used has sufficient permissions to delete impersonation tokens.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the user or token does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion