A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/sql-reference/sql/show-user-programmatic-access-tokens below:

Website Navigation


SHOW USER PROGRAMMATIC ACCESS TOKENS

SHOW USER PROGRAMMATIC ACCESS TOKENS

Lists the programmatic access tokens associated with a user.

Note

The list includes programmatic access tokens that have expired within the past 30 days. To view information about tokens that have expired more than 30 days ago, query the CREDENTIALS view.

See also:

ALTER USER … ADD PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER USER … MODIFY PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER USER … ROTATE PROGRAMMATIC ACCESS TOKEN (PAT) , ALTER USER … REMOVE PROGRAMMATIC ACCESS TOKEN (PAT)

Syntax
SHOW USER { PROGRAMMATIC ACCESS TOKENS | PATS } [ FOR USER <username> ]

Copy

You can use the keyword PATS as a shorter way of specifying the keywords PROGRAMMATIC ACCESS TOKENS.

Parameters
FOR USER username

Lists the programmatic access tokens for the specified user.

Default: Lists the programmatic access tokens for the current user.

Output

The output of the command includes the following columns, which describe the properties and metadata of the object:

The command output includes the following columns, which provide properties and metadata for each programmatic access token:

Column

Description

name

The name of the programmatic access token.

user_name

The username associated with the programmatic access token.

If the user associated with the programmatic access token was removed from the account, then Snowflake returns the user ID instead of the username. You can find information about a removed user by using the USERS view in the ACCOUNT_USAGE schema.

role_restriction

The name of the role that the programmatic access token inherits privileges from.

expires_at

The timestamp when the programmatic access token expires.

status

The status of the programmatic access token. This column can be one of the following values:

comment

A user-provided comment about the programmatic access token.

created_on

The date when the programmatic access token was created.

created_by

The username or user ID of the user who created the programmatic access token.

mins_to_bypass_required_network_policy

The number of minutes during which a user can use this token to access Snowflake without being subject to an active network policy.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

Privilege

Object

Notes

MODIFY

User

Required only when displaying programmatic access tokens for a human user other than yourself or a service user.

For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.

For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Usage notes Examples

Show information about programmatic access tokens associated with the user example_user:

SHOW USER PROGRAMMATIC ACCESS TOKENS FOR USER example_user;

Copy


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4