Skip to content

Add last_used_at to impersination token api documentation

What does this MR do and why?

Adds the last_used_at property to the response example of the GET /users/:user_id/impersonation_tokens api.

Screenshots or screen recordings

How to set up and validate locally

  1. Create a private excess token on an instance where you are allowed to use readapi for user
  2. curl -H "PRIVATE-TOKEN: $GITLAB_PAT" "https://$GITLAB_URL/api/v4/users/:user_id/impersonation_tokens?state=active&per_page=100"
  3. Verify that the response contains the last_used_at property.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Martin Huter

Merge request reports

Loading