Titan Core
  • Overview
  • Getting Started
  • Working With Resources
  • Blueprint
  • GitHub Action
  • Resources
    • APIAuthenticationSecurityIntegration
    • APIIntegration
    • AccountParameter
    • AggregationPolicy
    • Alert
    • AuthenticationPolicy
    • AzureStorageIntegration
    • ComputePool
    • Database
    • DatabaseRole
    • DynamicTable
    • EmailNotificationIntegration
    • EventTable
    • ExternalAccessIntegration
    • ExternalStage
    • FailoverGroup
    • FutureGrant
    • GCSStorageIntegration
    • GenericSecret
    • GlueCatalogIntegration
    • Grant
    • GrantOnAll
    • HybridTable
    • ImageRepository
    • InternalStage
    • JSONFileFormat
    • JavascriptUDF
    • MaterializedView
    • NetworkPolicy
    • NetworkRule
    • OAuthSecret
    • ObjectStoreCatalogIntegration
    • PackagesPolicy
    • ParquetFileFormat
    • PasswordPolicy
    • PasswordSecret
    • Pipe
    • PythonStoredProcedure
    • PythonUDF
    • ReplicationGroup
    • ResourceMonitor
    • Role
    • RoleGrant
    • S3StorageIntegration
    • Schema
    • Sequence
    • Service
    • SessionPolicy
    • Share
    • SnowflakePartnerOAuthSecurityIntegration
    • SnowservicesOAuthSecurityIntegration
    • StageStream
    • Table
    • TableStream
    • Tag
    • Task
    • User
    • View
    • ViewStream
    • Warehouse
Powered by GitBook
On this page
  • Examples
  • Python
  • YAML
  • Fields
  1. Resources

User

PreviousTaskNextView

Last updated 8 months ago

A user in Snowflake.

Examples

Python

user = User(
    name="some_user",
    owner="USERADMIN",
    email="some.user@example.com",
    type="PERSON",
)

YAML

users:
  - name: some_user
    owner: USERADMIN
    email: some.user@example.com
    type: PERSON

Fields

  • name (string, required) - The name of the user.

  • password (string) - The password of the user.

  • login_name (string) - The login name of the user. Defaults to the name in uppercase.

  • display_name (string) - The display name of the user. Defaults to the name in lowercase.

  • first_name (string) - The first name of the user.

  • middle_name (string) - The middle name of the user.

  • last_name (string) - The last name of the user.

  • email (string) - The email of the user.

  • must_change_password (bool) - Whether the user must change their password. Defaults to False.

  • disabled (bool) - Whether the user is disabled. Defaults to False.

  • days_to_expiry (int) - The number of days until the user's password expires.

  • mins_to_unlock (int) - The number of minutes until the user's account is unlocked.

  • default_warehouse (string) - The default warehouse for the user.

  • default_namespace (string) - The default namespace for the user.

  • default_role (string) - The default role for the user.

  • default_secondary_roles (list) - The default secondary roles for the user.

  • mins_to_bypass_mfa (int) - The number of minutes until the user can bypass Multi-Factor Authentication.

  • rsa_public_key (string) - The RSA public key for the user.

  • rsa_public_key_2 (string) - The RSA public key for the user.

  • comment (string) - A comment for the user.

  • network_policy (string) - The network policy for the user.

  • tags (dict) - Tags for the user.

owner (string or ) - The owner of the user. Defaults to "USERADMIN".

type (string or ) - The type of the user. Defaults to "NULL".

Snowflake Documentation
Role
UserType