GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves impersonation tokens for a specific user from the GitLab API (v4). 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 active or inactive impersonation tokens for a user to monitor security or automate token management.

Use Case Examples

  1. Retrieve all impersonation tokens for user ID 123.
  2. Filter impersonation tokens to only show active tokens for a user.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the request.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to control pagination and filtering of impersonation tokens.
Path Parameters Path parameter specifying the user ID whose impersonation tokens are being retrieved.

Output

JSON

  • impersonation_tokens - List of impersonation tokens for the specified user, including details such as token state and expiration.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API credentials have sufficient permissions to access user impersonation tokens.
  • Check the baseUrl is correctly set to the GitLab instance URL if not using the default https://gitlab.com.
  • If filtering by state, ensure the value is one of 'all', 'active', or 'inactive' to avoid errors.

Links

Discussion