1. Packages
  2. Snowflake
  3. API Docs
  4. User
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

snowflake.User

Explore with Pulumi AI

snowflake logo
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const user = new snowflake.User("user", {
        comment: "A user of snowflake.",
        defaultRole: "role1",
        defaultSecondaryRoles: ["ALL"],
        defaultWarehouse: "warehouse",
        disabled: false,
        displayName: "Snowflake User",
        email: "user@snowflake.example",
        firstName: "Snowflake",
        lastName: "User",
        loginName: "snowflake_user",
        mustChangePassword: false,
        password: "secret",
        rsaPublicKey: "...",
        rsaPublicKey2: "...",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    user = snowflake.User("user",
        comment="A user of snowflake.",
        default_role="role1",
        default_secondary_roles=["ALL"],
        default_warehouse="warehouse",
        disabled=False,
        display_name="Snowflake User",
        email="user@snowflake.example",
        first_name="Snowflake",
        last_name="User",
        login_name="snowflake_user",
        must_change_password=False,
        password="secret",
        rsa_public_key="...",
        rsa_public_key2="...")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := snowflake.NewUser(ctx, "user", &snowflake.UserArgs{
    			Comment:     pulumi.String("A user of snowflake."),
    			DefaultRole: pulumi.String("role1"),
    			DefaultSecondaryRoles: pulumi.StringArray{
    				pulumi.String("ALL"),
    			},
    			DefaultWarehouse:   pulumi.String("warehouse"),
    			Disabled:           pulumi.Bool(false),
    			DisplayName:        pulumi.String("Snowflake User"),
    			Email:              pulumi.String("user@snowflake.example"),
    			FirstName:          pulumi.String("Snowflake"),
    			LastName:           pulumi.String("User"),
    			LoginName:          pulumi.String("snowflake_user"),
    			MustChangePassword: pulumi.Bool(false),
    			Password:           pulumi.String("secret"),
    			RsaPublicKey:       pulumi.String("..."),
    			RsaPublicKey2:      pulumi.String("..."),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var user = new Snowflake.User("user", new()
        {
            Comment = "A user of snowflake.",
            DefaultRole = "role1",
            DefaultSecondaryRoles = new[]
            {
                "ALL",
            },
            DefaultWarehouse = "warehouse",
            Disabled = false,
            DisplayName = "Snowflake User",
            Email = "user@snowflake.example",
            FirstName = "Snowflake",
            LastName = "User",
            LoginName = "snowflake_user",
            MustChangePassword = false,
            Password = "secret",
            RsaPublicKey = "...",
            RsaPublicKey2 = "...",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.User;
    import com.pulumi.snowflake.UserArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var user = new User("user", UserArgs.builder()        
                .comment("A user of snowflake.")
                .defaultRole("role1")
                .defaultSecondaryRoles("ALL")
                .defaultWarehouse("warehouse")
                .disabled(false)
                .displayName("Snowflake User")
                .email("user@snowflake.example")
                .firstName("Snowflake")
                .lastName("User")
                .loginName("snowflake_user")
                .mustChangePassword(false)
                .password("secret")
                .rsaPublicKey("...")
                .rsaPublicKey2("...")
                .build());
    
        }
    }
    
    resources:
      user:
        type: snowflake:User
        properties:
          comment: A user of snowflake.
          defaultRole: role1
          defaultSecondaryRoles:
            - ALL
          defaultWarehouse: warehouse
          disabled: false
          displayName: Snowflake User
          email: user@snowflake.example
          firstName: Snowflake
          lastName: User
          loginName: snowflake_user
          mustChangePassword: false
          password: secret
          rsaPublicKey: '...'
          rsaPublicKey2: '...'
    

    Create User Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new User(name: string, args?: UserArgs, opts?: CustomResourceOptions);
    @overload
    def User(resource_name: str,
             args: Optional[UserArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def User(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             comment: Optional[str] = None,
             default_namespace: Optional[str] = None,
             default_role: Optional[str] = None,
             default_secondary_roles: Optional[Sequence[str]] = None,
             default_warehouse: Optional[str] = None,
             disabled: Optional[bool] = None,
             display_name: Optional[str] = None,
             email: Optional[str] = None,
             first_name: Optional[str] = None,
             last_name: Optional[str] = None,
             login_name: Optional[str] = None,
             must_change_password: Optional[bool] = None,
             name: Optional[str] = None,
             password: Optional[str] = None,
             rsa_public_key: Optional[str] = None,
             rsa_public_key2: Optional[str] = None)
    func NewUser(ctx *Context, name string, args *UserArgs, opts ...ResourceOption) (*User, error)
    public User(string name, UserArgs? args = null, CustomResourceOptions? opts = null)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    type: snowflake:User
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var userResource = new Snowflake.User("userResource", new()
    {
        Comment = "string",
        DefaultNamespace = "string",
        DefaultRole = "string",
        DefaultSecondaryRoles = new[]
        {
            "string",
        },
        DefaultWarehouse = "string",
        Disabled = false,
        DisplayName = "string",
        Email = "string",
        FirstName = "string",
        LastName = "string",
        LoginName = "string",
        MustChangePassword = false,
        Name = "string",
        Password = "string",
        RsaPublicKey = "string",
        RsaPublicKey2 = "string",
    });
    
    example, err := snowflake.NewUser(ctx, "userResource", &snowflake.UserArgs{
    	Comment:          pulumi.String("string"),
    	DefaultNamespace: pulumi.String("string"),
    	DefaultRole:      pulumi.String("string"),
    	DefaultSecondaryRoles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefaultWarehouse:   pulumi.String("string"),
    	Disabled:           pulumi.Bool(false),
    	DisplayName:        pulumi.String("string"),
    	Email:              pulumi.String("string"),
    	FirstName:          pulumi.String("string"),
    	LastName:           pulumi.String("string"),
    	LoginName:          pulumi.String("string"),
    	MustChangePassword: pulumi.Bool(false),
    	Name:               pulumi.String("string"),
    	Password:           pulumi.String("string"),
    	RsaPublicKey:       pulumi.String("string"),
    	RsaPublicKey2:      pulumi.String("string"),
    })
    
    var userResource = new User("userResource", UserArgs.builder()        
        .comment("string")
        .defaultNamespace("string")
        .defaultRole("string")
        .defaultSecondaryRoles("string")
        .defaultWarehouse("string")
        .disabled(false)
        .displayName("string")
        .email("string")
        .firstName("string")
        .lastName("string")
        .loginName("string")
        .mustChangePassword(false)
        .name("string")
        .password("string")
        .rsaPublicKey("string")
        .rsaPublicKey2("string")
        .build());
    
    user_resource = snowflake.User("userResource",
        comment="string",
        default_namespace="string",
        default_role="string",
        default_secondary_roles=["string"],
        default_warehouse="string",
        disabled=False,
        display_name="string",
        email="string",
        first_name="string",
        last_name="string",
        login_name="string",
        must_change_password=False,
        name="string",
        password="string",
        rsa_public_key="string",
        rsa_public_key2="string")
    
    const userResource = new snowflake.User("userResource", {
        comment: "string",
        defaultNamespace: "string",
        defaultRole: "string",
        defaultSecondaryRoles: ["string"],
        defaultWarehouse: "string",
        disabled: false,
        displayName: "string",
        email: "string",
        firstName: "string",
        lastName: "string",
        loginName: "string",
        mustChangePassword: false,
        name: "string",
        password: "string",
        rsaPublicKey: "string",
        rsaPublicKey2: "string",
    });
    
    type: snowflake:User
    properties:
        comment: string
        defaultNamespace: string
        defaultRole: string
        defaultSecondaryRoles:
            - string
        defaultWarehouse: string
        disabled: false
        displayName: string
        email: string
        firstName: string
        lastName: string
        loginName: string
        mustChangePassword: false
        name: string
        password: string
        rsaPublicKey: string
        rsaPublicKey2: string
    

    User Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The User resource accepts the following input properties:

    Comment string
    DefaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    DefaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    DefaultSecondaryRoles List<string>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    DefaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    Disabled bool
    DisplayName string
    Name displayed for the user in the Snowflake web interface.
    Email string
    Email address for the user.
    FirstName string
    First name of the user.
    LastName string
    Last name of the user.
    LoginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    MustChangePassword bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    Name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    Password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    RsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    RsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    Comment string
    DefaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    DefaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    DefaultSecondaryRoles []string
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    DefaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    Disabled bool
    DisplayName string
    Name displayed for the user in the Snowflake web interface.
    Email string
    Email address for the user.
    FirstName string
    First name of the user.
    LastName string
    Last name of the user.
    LoginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    MustChangePassword bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    Name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    Password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    RsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    RsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment String
    defaultNamespace String
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole String
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles List<String>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse String
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled Boolean
    displayName String
    Name displayed for the user in the Snowflake web interface.
    email String
    Email address for the user.
    firstName String
    First name of the user.
    lastName String
    Last name of the user.
    loginName String
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword Boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name String
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password String
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey String
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 String
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment string
    defaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles string[]
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled boolean
    displayName string
    Name displayed for the user in the Snowflake web interface.
    email string
    Email address for the user.
    firstName string
    First name of the user.
    lastName string
    Last name of the user.
    loginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment str
    default_namespace str
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    default_role str
    Specifies the role that is active by default for the user’s session upon login.
    default_secondary_roles Sequence[str]
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    default_warehouse str
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled bool
    display_name str
    Name displayed for the user in the Snowflake web interface.
    email str
    Email address for the user.
    first_name str
    First name of the user.
    last_name str
    Last name of the user.
    login_name str
    The name users use to log in. If not supplied, snowflake will use name instead.
    must_change_password bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name str
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password str
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsa_public_key str
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsa_public_key2 str
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment String
    defaultNamespace String
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole String
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles List<String>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse String
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled Boolean
    displayName String
    Name displayed for the user in the Snowflake web interface.
    email String
    Email address for the user.
    firstName String
    First name of the user.
    lastName String
    Last name of the user.
    loginName String
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword Boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name String
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password String
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey String
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 String
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:

    HasRsaPublicKey bool
    Will be true if user as an RSA key set.
    Id string
    The provider-assigned unique ID for this managed resource.
    HasRsaPublicKey bool
    Will be true if user as an RSA key set.
    Id string
    The provider-assigned unique ID for this managed resource.
    hasRsaPublicKey Boolean
    Will be true if user as an RSA key set.
    id String
    The provider-assigned unique ID for this managed resource.
    hasRsaPublicKey boolean
    Will be true if user as an RSA key set.
    id string
    The provider-assigned unique ID for this managed resource.
    has_rsa_public_key bool
    Will be true if user as an RSA key set.
    id str
    The provider-assigned unique ID for this managed resource.
    hasRsaPublicKey Boolean
    Will be true if user as an RSA key set.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing User Resource

    Get an existing User resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UserState, opts?: CustomResourceOptions): User
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            default_namespace: Optional[str] = None,
            default_role: Optional[str] = None,
            default_secondary_roles: Optional[Sequence[str]] = None,
            default_warehouse: Optional[str] = None,
            disabled: Optional[bool] = None,
            display_name: Optional[str] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            has_rsa_public_key: Optional[bool] = None,
            last_name: Optional[str] = None,
            login_name: Optional[str] = None,
            must_change_password: Optional[bool] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            rsa_public_key: Optional[str] = None,
            rsa_public_key2: Optional[str] = None) -> User
    func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
    public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
    public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Comment string
    DefaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    DefaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    DefaultSecondaryRoles List<string>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    DefaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    Disabled bool
    DisplayName string
    Name displayed for the user in the Snowflake web interface.
    Email string
    Email address for the user.
    FirstName string
    First name of the user.
    HasRsaPublicKey bool
    Will be true if user as an RSA key set.
    LastName string
    Last name of the user.
    LoginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    MustChangePassword bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    Name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    Password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    RsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    RsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    Comment string
    DefaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    DefaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    DefaultSecondaryRoles []string
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    DefaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    Disabled bool
    DisplayName string
    Name displayed for the user in the Snowflake web interface.
    Email string
    Email address for the user.
    FirstName string
    First name of the user.
    HasRsaPublicKey bool
    Will be true if user as an RSA key set.
    LastName string
    Last name of the user.
    LoginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    MustChangePassword bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    Name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    Password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    RsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    RsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment String
    defaultNamespace String
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole String
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles List<String>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse String
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled Boolean
    displayName String
    Name displayed for the user in the Snowflake web interface.
    email String
    Email address for the user.
    firstName String
    First name of the user.
    hasRsaPublicKey Boolean
    Will be true if user as an RSA key set.
    lastName String
    Last name of the user.
    loginName String
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword Boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name String
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password String
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey String
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 String
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment string
    defaultNamespace string
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole string
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles string[]
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse string
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled boolean
    displayName string
    Name displayed for the user in the Snowflake web interface.
    email string
    Email address for the user.
    firstName string
    First name of the user.
    hasRsaPublicKey boolean
    Will be true if user as an RSA key set.
    lastName string
    Last name of the user.
    loginName string
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name string
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password string
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey string
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 string
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment str
    default_namespace str
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    default_role str
    Specifies the role that is active by default for the user’s session upon login.
    default_secondary_roles Sequence[str]
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    default_warehouse str
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled bool
    display_name str
    Name displayed for the user in the Snowflake web interface.
    email str
    Email address for the user.
    first_name str
    First name of the user.
    has_rsa_public_key bool
    Will be true if user as an RSA key set.
    last_name str
    Last name of the user.
    login_name str
    The name users use to log in. If not supplied, snowflake will use name instead.
    must_change_password bool
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name str
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password str
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsa_public_key str
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsa_public_key2 str
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
    comment String
    defaultNamespace String
    Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
    defaultRole String
    Specifies the role that is active by default for the user’s session upon login.
    defaultSecondaryRoles List<String>
    Specifies the set of secondary roles that are active for the user’s session upon login. Currently only ["ALL"] value is supported - more information can be found in doc
    defaultWarehouse String
    Specifies the virtual warehouse that is active by default for the user’s session upon login.
    disabled Boolean
    displayName String
    Name displayed for the user in the Snowflake web interface.
    email String
    Email address for the user.
    firstName String
    First name of the user.
    hasRsaPublicKey Boolean
    Will be true if user as an RSA key set.
    lastName String
    Last name of the user.
    loginName String
    The name users use to log in. If not supplied, snowflake will use name instead.
    mustChangePassword Boolean
    Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
    name String
    Name of the user. Note that if you do not supply loginname this will be used as loginname. doc
    password String
    WARNING: this will put the password in the terraform state file. Use carefully.
    rsaPublicKey String
    Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
    rsaPublicKey2 String
    Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.

    Import

    $ pulumi import snowflake:index/user:User example userName
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi