DESCRIBE USER

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: USER

Describes a user, including the current and default values of the properties of the user. DESCRIBE can be abbreviated to DESC.

Syntax

{ DESC | DESCRIBE } USER <name>

Parameters

NameRequiredDescription
nameSpecifies the identifier for the user to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.

Usage notes

Output

The output of the command includes the following columns, which describe the properties and metadata of the object: Column | Description property | The name of the property (see Properties of users). property_type | The data type of the property (for example, Boolean or String). property_value | The value assigned to the property. property_default | The default value of the property. The property column can include the following properties of the user: Properties of users Property | Description NAME | Name of the user. COMMENT | Comment about the user. DISPLAY_NAME | Name displayed for the user in Snowsight. TYPE | Type of the user. For a list of possible values, see Types of users. LOGIN_NAME | Name that the user enters to log into the system. FIRST_NAME | First name of the user. MIDDLE_NAME | Middle name of the user. LAST_NAME | Last name of the user. EMAIL | Email address for the user. PASSWORD | Obfuscated password of the user. MUST_CHANGE_PASSWORD | If TRUE, the user is forced to change their password on next login (including their first/initial login) into the system. DISABLED | If TRUE, the user is locked out of Snowflake and cannot log back in. SNOWFLAKE_LOCK | If TRUE, the user is locked by Snowflake. When a user is locked, they are unable to log in until the lock is removed. SNOWFLAKE_SUPPORT | If TRUE, Snowflake Support is allowed to use the user or account. DAYS_TO_EXPIRY | Number of days after which the user status is set to “Expired” and the user is no longer allowed to log in. MINS_TO_UNLOCK | Number of minutes until the temporary lock on the user login is cleared. DEFAULT_WAREHOUSE | Virtual warehouse that is active by default for the user’s session upon logging in. DEFAULT_NAMESPACE | Namespace (database only or database and schema) that is active by default for the user’s session upon logging in. DEFAULT_ROLE | Primary role that is active by default for the user’s session upon logging in. DEFAULT_SECONDARY_ROLES | Set of secondary roles that are active for the user’s session upon logging in. EXT_AUTHN_DUO | If TRUE, Duo is enabled for the user, which requires the user to use MFA (multi-factor authentication) when logging in. EXT_AUTHN_UID | Authorization ID used for Duo. DEFAULT_MFA_METHOD | Default MFA method for the user. HAS_MFA | If TRUE, the user is enrolled in multi-factor authentication (MFA). HAS_PAT | If TRUE, the user has one or more programmatic access tokens. HAS_WORKLOAD_IDENTITY | If TRUE, the user is configured to authenticate with workload identity federation. MINS_TO_BYPASS_MFA | Number of minutes to temporarily bypass MFA requirement for the user. MINS_TO_BYPASS_NETWORK_POLICY | Number of minutes to temporarily bypass the requirement of having a network policy for programmatic access tokens. RSA_PUBLIC_KEY | RSA public key of the user for key-pair authentication. RSA_PUBLIC_KEY_FP | Fingerprint of the user’s RSA public key. RSA_PUBLIC_KEY_LAST_SET_TIME | Date and time when the RSA public key was last set for the user. RSA_PUBLIC_KEY_2 | Second RSA public key of the user for use during key-pair rotation. RSA_PUBLIC_KEY_2_FP | Fingerprint of the user’s second RSA public key. RSA_PUBLIC_KEY_2_LAST_SET_TIME | Date and time when the second RSA public key was last set for the user. PASSWORD_LAST_SET_TIME | Date and time when the last non-NULL password was set for the user. If no password was set, the value of this property is NULL. CUSTOM_LANDING_PAGE_URL | Reserved for future use. CUSTOM_LANDING_PAGE_URL_FLUSH_NEXT_UI_LOAD | Reserved for future use. IS_FROM_ORGANIZATION_USER | If TRUE, the user was imported from a global organization user. ALLOWED_INTERFACES | List of Snowflake interfaces that the user is allowed to access. The value is ('ALL') or one or more of 'SNOWFLAKE_INTELLIGENCE', 'STREAMLIT'.

Access control requirements

Individual users can see their own properties by executing this command and specifying their own name. To view the properties of another user, you must use a role that has the following privilege: Privilege | Object | Notes OWNERSHIP | 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.

See also

Referenced by