--- title: '`glab service-account token list`' stage: AI Clients group: Developer Clients info: To determine the technical writer assigned to the Stage/Group associated with this page, see --- List the tokens of a service account. ## Synopsis List the personal access tokens of a service account of a project or a group. - A numeric account argument is always treated as an ID. - Token values are never shown. GitLab returns a token's value only when the token is created or rotated. Listing the tokens of a group service account requires GitLab 17.11 or later. ```plaintext glab service-account token list [flags] ``` ## Examples ```console # List the tokens of service account 42 of the current project glab service-account token list 42 # List only the active tokens, finding the account by its username glab service-account token list release-bot --active # List the tokens of a group's service account glab service-account token list 42 --group my-group # Print the names of the active tokens glab service-account token list 42 --active --output json --jq '.[].name' ``` ## Options ```plaintext -a, --active List only the active tokens. -g, --group group List the tokens of a service account of a group instead of a project. Accepts a group ID or full path. --jq string Filter JSON output with a jq expression. -F, --output string Format output as: text, json. (default "text") -R, --repo string Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. ``` ## Options inherited from parent commands ```plaintext -h, --help Show help for this command. ```