SYSTEM$DECODE_PAT

functiondeferredAccounts, users, sessions, warehouses

docs.snowflake.com ↗

System functions

Returns information about a programmatic access token, given the secret for the token. This information includes the name of the token, the state of the token, and the user associated with the token. You can call this function if you need to disable a programmatic access token and you want to know which user is associated with the token.

Syntax

SYSTEM$DECODE_PAT( '<secret_for_programmatic_access_token>' )

Parameters

NameRequiredDescription
'secret_for_programmatic_access_token'requiredSecret for the programmatic access token.

Returns

Returns a VARCHAR value containing the token information in a JSON object. The JSON object has the following fields:

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.