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:"ada65056-7604-4aa8-8048-3fb5f5b03aad",
    uid:"abc",
    label:"kjdn",
    createdAt:1970-01-01T00:00:00Z,
    expiresAt:1970-03-01T00:00:00Z,
},
{
    tid:"bda65056-7604-4aa8-8048-3fb5f5b03aad",
    uid:"fdec",
    label:"kjdn",
    createdAt:1970-01-01T00:00:00Z,
    expiresAt:1970-03-01T00:00:00Z,
}
]
}

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 ""