This section explains how to use the qq auth_create_access_token command.

Description

Create a long-lived access token

Usage

qq auth_create_access_token [-h] [--self] [--expiration-time EXPIRATION_TIME] [--file PATH] [identifier]

Flags

Flag Name Required Description
--self No Create an access key that targets the currently logged in user.
--expiration-time No The expiration time of the access token. After this time, the token will no longer be usable for authentication. For example, "Jan 20 2024", "1/20/2024", or "2024-01-20 12:00", with times interpreted in UTC timezone.
--file No File to store the access token credential. That file can be passed to the --credentials-store argument to authenticate using the created access token.

Positional Options

Option Name Description
identifier An auth_id, SID, or name optionally qualified with a domain prefix (e.g "local:name", "ad:name", "AD\name") or an ID type (e.g. "auth_id:513", "SID:S-1-1-0"). Groups are not supported for access tokens, must be a user.