Method: Gitlab::Client::Users#user_impersonation_tokens

Defined in:
lib/gitlab/client/users.rb

#user_impersonation_tokens(user_id) ⇒ Array<Gitlab::ObjectifiedHash>

Get all impersonation tokens for a user

Examples:

Gitlab.user_impersonation_tokens(1)

Parameters:

  • user_id (Integer)

    The ID of the user.

  • state (String)

    Filter impersonation tokens by state {}

Returns:

[View source]

341
342
343
# File 'lib/gitlab/client/users.rb', line 341

def user_impersonation_tokens(user_id)
  get("/users/#{user_id}/impersonation_tokens")
end