GET /user/{id}/token

Lists all the personal access tokens associated with a specific user, based on the user ID.

[info] Enterprise Edition only

Syntax

GET /api/v3/user/{id}/token

Request Input

N/A

Response Output

{
  "data": [
    {
      "tid": "d87dadff-e1f9-4529-9e56-3a8a44262ba6",
      "uid": "9721993d-4b4d-4af6-8b44-e1d27ec7b819",
      "label": "foo-app",
      "createdAt": "2019-12-02T19:42:22.756Z",
      "expiresAt": "2020-01-01T19:42:22.756Z"
    },
    {
      "tid": "77c67afe-9536-4701-9620-93ba44b79df3",
      "uid": "9721993d-4b4d-4af6-8b44-e1d27ec7b819",
      "label": "bar-access",
      "createdAt": "2020-01-10T23:19:11.649Z",
      "expiresAt": "2020-01-17T23:19:11.649Z"
    }
  ]
}

Response codes

404 - User doesn't have an access token. 404 - User doesn't exist. 403 - No permissions (not Admin)

Example: Curl

curl --request GET \
  --url http://localhost:9047/api/v3/user/<uid>/token \
  --header 'authorization: _dremioha5lrg03obu079o4fkaev5e4r8n' \
  --header 'content-type: application/json'

results matching ""

    No results matching ""