Retrieve an impersonation token for a user
GET
/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}
Retrieves an impersonation token for a specified user. Administrators only.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” user_id
required
integer
The ID of the user
impersonation_token_id
required
integer
The ID of the impersonation token
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
name
string
revoked
boolean
created_at
string format: date-time
description
string
scopes
array
user_id
integer format: int64
last_used_at
string format: date-time
active
boolean
granular
boolean
expires_at
string format: date-time
last_used_ips
The five most recent unique IP addresses that have authenticated with this token. When the limit is reached, the oldest IP address is removed. The list updates once per minute per token.
Array<string>
granular_scopes
Array<object>
object
access
string
permissions
array
project_id
integer format: int64
group_id
integer format: int64
impersonation
string
Example
{ "id": 2, "name": "John Doe", "description": "Token to manage api", "scopes": [ "api" ], "user_id": 3, "last_used_at": "2020-08-31T15:53:00.073Z", "expires_at": "2020-08-31T15:53:00.073Z", "last_used_ips": [ "127.0.0.1", "127.0.0.2", "127.0.0.3" ], "granular_scopes": [ { "access": "personal_projects", "permissions": [ "read_job" ], "project_id": 3, "group_id": 5 } ]}Bad Request
Not Found