GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves impersonation tokens for a specific user from the GitLab API. It is useful for administrators or automation workflows that need to manage or audit user impersonation tokens, which allow acting on behalf of a user. For example, it can be used to list all active or inactive impersonation tokens for a user to monitor access or revoke tokens as needed.

Use Case Examples

  1. Retrieve all impersonation tokens for user ID 123 to audit active tokens.
  2. Fetch inactive impersonation tokens for a user to clean up unused tokens.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to filter and paginate the results.
Path Parameters Path parameters required for the request.

Output

JSON

  • id - The unique identifier of the impersonation token.
  • name - The name of the impersonation token.
  • scopes - The scopes or permissions granted by the impersonation token.
  • created_at - Timestamp when the token was created.
  • expires_at - Expiration date of the token.
  • active - Boolean indicating if the token is active.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the user_id path parameter is provided and valid; missing or invalid user_id will cause request failure.
  • Verify that the GitLab API credentials are correctly configured and have sufficient permissions to access user impersonation tokens.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters (page, per_page) are used, ensure they are valid integers to avoid errors.

Links

Discussion