GitLab API

GitlabTool

Actions1095

Users → getApiV4UsersUserIdImpersonationTokensImpersonationTokenId

AI-generated

Summary

Retrieve details of a specific impersonation token for a given user by user ID and impersonation token ID.

Inputs

  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • user_id (required) — The ID of the user for whom to retrieve the impersonation token.
  • impersonation_token_id (required) — The ID of the impersonation token to retrieve.
  • skipAuthentication — Whether to skip authentication (default false).

Output shape

a single impersonation token object with its details

Requires authentication via the GitlabApi credential unless skipAuthentication is set to true. The path parameters user_id and impersonation_token_id are mandatory to identify the impersonation token resource. The HTTP method used is GET.

Examples

Example 1: Fetch an impersonation token info for user 42 and token 99

Set user_id to 42 and impersonation_token_id to 99; use default baseUrl and authentication.

Links

Discussion