GitLab API

GitlabTool

Actions1095

Users → postApiV4UsersUserIdImpersonationTokens

AI-generated

Summary

Create an impersonation token for a specific GitLab user by user ID.

Inputs

  • user_id (required) — The ID of the GitLab user to impersonate.

Output shape

a single JSON object representing the impersonation token created by GitLab

Requires authentication through GitLab API credentials unless 'Skip Authentication' is enabled. The operation corresponds to a POST request to the path /api/v4/users/{user_id}/impersonation_tokens with a request body matching the GitLab API schema for impersonation token creation.

Links

Discussion