GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific impersonation token for a user in GitLab using the GitLab API. It is useful for scenarios where you need to manage or audit user impersonation tokens, such as verifying token details or checking token validity for security purposes.

Use Case Examples

  1. Fetch details of a particular impersonation token for a user to audit access rights.
  2. Retrieve token information to validate or revoke impersonation tokens programmatically.

Properties

Name Meaning
Skip Authentication Option 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.
Path Parameters Parameters required in the URL path to specify the user and impersonation token IDs.

Output

JSON

  • id - The unique identifier of the impersonation token.
  • name - The name of the impersonation token.
  • user_id - The ID of the user associated with the token.
  • scopes - The scopes or permissions granted by the token.
  • created_at - Timestamp when the token was created.
  • expires_at - Expiration date of the token.
  • active - Indicates if the token is currently active.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the user_id and impersonation_token_id path parameters are correctly provided and valid integers.
  • 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 and accessible.

Links

Discussion