SYSTEM$DECODE_PAT
functiondeferredAccounts, users, sessions, warehousesReturns 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
| Name | Required | Description |
|---|---|---|
'secret_for_programmatic_access_token' | required | Secret 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
- The emulator does not issue or authenticate programmatic access tokens, so there is no token to decode.