Schema:

ACCOUNT_USAGE

PASSWORD_POLICIES view

This Account Usage view provides the user-defined password policies in your account.

Each row in this view corresponds to a different password policy.

Columns

Column NameData TypeDescription
NAMEVARCHARName of the policy.
IDNUMBERInternal/system-generated identifier for the password policy.
SCHEMA_IDVARCHAR

Internal/system-generated identifier for the schema in which the policy resides.

SCHEMAVARCHARSchema to which the password policy belongs.
DATABASE_IDVARCHAR

Internal/system-generated identifier for the database in which the policy resides.

DATABASEVARCHARDatabase to which the password policy belongs.
OWNERVARCHARName of the role that owns the password policy.
OWNER_ROLE_TYPEVARCHAR

The type of role that owns the object, for example ROLE.
If a Snowflake Native App owns the object, the value is APPLICATION.
Snowflake returns NULL if you delete the object because a deleted object does not have an owner role.

PASSWORD_MIN_LENGTHNUMBERMinimum password length allowed for the policy.
PASSWORD_MAX_LENGTHNUMBERMaximum password length allowed for the policy.
PASSWORD_MIN_UPPER_CASE_CHARSNUMBERMinimum number of uppercase characters allowed for the policy.
PASSWORD_MIN_LOWER_CASE_CHARSNUMBERMinimum number of lowercase characters allowed for the policy.
PASSWORD_MIN_NUMERIC_CHARSNUMBERMinimum number of numeric characters allowed for the policy.
PASSWORD_MIN_SPECIAL_CHARSNUMBERMinimum number of special characters allowed for the policy.
PASSWORD_MIN_AGE_DAYSNUMBER

The number of days a user must wait before a recently changed password can be changed again.

PASSWORD_MAX_AGE_DAYSNUMBERMaximum number of days password is valid.
PASSWORD_MAX_RETRIESNUMBERMaximum number of password attempts allowed.
PASSWORD_LOCKOUT_TIME_MINSNUMBERMinimum time in minutes before password can be retried.
COMMENTVARCHARComments entered for the password policy (if any).
CREATEDTIMESTAMP_LTZDate and time when the password policy was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time when the password policy was last altered.
DELETEDTIMESTAMP_LTZDate and time when the password policy was dropped.
PASSWORD_HISTORYNUMBER

The number of the most recent passwords that Snowflake stores. These stored passwords cannot be repeated when a user updates their password value.

Usage notes

  • Latency for the view may be up to 120 minutes (2 hours).
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.