GitLab API icon

GitLab API

Gitlab

Actions1062

Users β†’ postApiV4UsersUserIdImpersonationTokens

AI-generated

Summary

Creates an impersonation token for a specified GitLab user.

Inputs

  • user_id (required) β€” The ID of the user for whom the token will be created.
  • tokenDetails (required) β€” Impersonation token details: name (string), expires_at (ISO‑8601 date string), scopes (array of strings).

Output shape

object

The response includes the created token with fields such as id, name, token, scopes, expires_at, revoked, created_at, and user_id.

Links

Discussion