USER
Config path: /user.yaml
Example:
Schema
{key} (ident) - user name
{value} (dict)
login_name (str)
display_name (str)
first_name (str)
last_name (str)
email (str)
disabled (bool)
type (str) - user type for security: PERSON, SERVICE, LEGACY_SERVICE, etc.
password (str)
rsa_public_key (str)
rsa_public_key_2 (str)
default_warehouse (ident)
default_namespace (str)
session_params (dict)
{key} (ident) - session param name
{value} (bool, float, int, str) - session param value
business_roles (list)
{items} (ident) - names of business roles
comment (str)
Policy reference parameters
authentication_policy (ident) - assign AUTHENTICATION POLICY to USER
network_policy (ident) - assign NETWORK POLICY to USER
Usage notes
password
is currently stored as plain text.Changes in
password
will NOT be applied automatically due to lack of ability to compare current password with old password stored in Snowflake metadata. Please use--refresh-user-passwords
argument to refresh passwords for all existing users if necessary.rsa_public_key
should be passed without public key delimiters.If
default_warehouse
is omitted, it will be derived automatically from first available warehouse mentioned inbusiness_roles -> warehouse_usage
.default_role
cannot be changed. SnowDDL automatically creates USER ROLE for each user and grants BUSINESS ROLES to USER ROLE instead.default_secondary_roles
are not supported on purpose. You should never need secondary roles with role hierarchy provided by SnowDDL.middle_name
is not supported due to lack of this column inSHOW USERS
output, and also due to ambiguity of this column for users outside of US.
Links
Last updated