snowflake.User
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const user = new snowflake.User("user", {
name: "Snowflake User",
loginName: "snowflake_user",
comment: "A user of snowflake.",
password: "secret",
disabled: false,
displayName: "Snowflake User",
email: "user@snowflake.example",
firstName: "Snowflake",
lastName: "User",
defaultWarehouse: "warehouse",
defaultSecondaryRoles: ["ALL"],
defaultRole: "role1",
rsaPublicKey: "...",
rsaPublicKey2: "...",
mustChangePassword: false,
});
import pulumi
import pulumi_snowflake as snowflake
user = snowflake.User("user",
name="Snowflake User",
login_name="snowflake_user",
comment="A user of snowflake.",
password="secret",
disabled=False,
display_name="Snowflake User",
email="user@snowflake.example",
first_name="Snowflake",
last_name="User",
default_warehouse="warehouse",
default_secondary_roles=["ALL"],
default_role="role1",
rsa_public_key="...",
rsa_public_key2="...",
must_change_password=False)
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{
Name: pulumi.String("Snowflake User"),
LoginName: pulumi.String("snowflake_user"),
Comment: pulumi.String("A user of snowflake."),
Password: pulumi.String("secret"),
Disabled: pulumi.Bool(false),
DisplayName: pulumi.String("Snowflake User"),
Email: pulumi.String("user@snowflake.example"),
FirstName: pulumi.String("Snowflake"),
LastName: pulumi.String("User"),
DefaultWarehouse: pulumi.String("warehouse"),
DefaultSecondaryRoles: pulumi.StringArray{
pulumi.String("ALL"),
},
DefaultRole: pulumi.String("role1"),
RsaPublicKey: pulumi.String("..."),
RsaPublicKey2: pulumi.String("..."),
MustChangePassword: pulumi.Bool(false),
})
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()
{
Name = "Snowflake User",
LoginName = "snowflake_user",
Comment = "A user of snowflake.",
Password = "secret",
Disabled = false,
DisplayName = "Snowflake User",
Email = "user@snowflake.example",
FirstName = "Snowflake",
LastName = "User",
DefaultWarehouse = "warehouse",
DefaultSecondaryRoles = new[]
{
"ALL",
},
DefaultRole = "role1",
RsaPublicKey = "...",
RsaPublicKey2 = "...",
MustChangePassword = false,
});
});
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()
.name("Snowflake User")
.loginName("snowflake_user")
.comment("A user of snowflake.")
.password("secret")
.disabled(false)
.displayName("Snowflake User")
.email("user@snowflake.example")
.firstName("Snowflake")
.lastName("User")
.defaultWarehouse("warehouse")
.defaultSecondaryRoles("ALL")
.defaultRole("role1")
.rsaPublicKey("...")
.rsaPublicKey2("...")
.mustChangePassword(false)
.build());
}
}
resources:
user:
type: snowflake:User
properties:
name: Snowflake User
loginName: snowflake_user
comment: A user of snowflake.
password: secret
disabled: false
displayName: Snowflake User
email: user@snowflake.example
firstName: Snowflake
lastName: User
defaultWarehouse: warehouse
defaultSecondaryRoles:
- ALL
defaultRole: role1
rsaPublicKey: '...'
rsaPublicKey2: '...'
mustChangePassword: false
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)
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.
Constructor 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
- Default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- Default
Role string - Specifies the role that is active by default for the user’s session upon login.
- Default
Secondary List<string>Roles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- Disabled bool
- Display
Name string - Name displayed for the user in the Snowflake web interface.
- Email string
- Email address for the user.
- First
Name string - First name of the user.
- Last
Name string - Last name of the user.
- Login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- Must
Change boolPassword - 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
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - 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
- Default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- Default
Role string - Specifies the role that is active by default for the user’s session upon login.
- Default
Secondary []stringRoles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- Disabled bool
- Display
Name string - Name displayed for the user in the Snowflake web interface.
- Email string
- Email address for the user.
- First
Name string - First name of the user.
- Last
Name string - Last name of the user.
- Login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- Must
Change boolPassword - 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
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - 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
- default
Namespace String - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role String - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary List<String>Roles - 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 String - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled Boolean
- display
Name String - Name displayed for the user in the Snowflake web interface.
- email String
- Email address for the user.
- first
Name String - First name of the user.
- last
Name String - Last name of the user.
- login
Name String - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change BooleanPassword - 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
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - 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
- default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role string - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary string[]Roles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled boolean
- display
Name string - Name displayed for the user in the Snowflake web interface.
- email string
- Email address for the user.
- first
Name string - First name of the user.
- last
Name string - Last name of the user.
- login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change booleanPassword - 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
- rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public stringKey2 - 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_ Sequence[str]roles - 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_ boolpassword - 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
- rsa_
public_ strkey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa_
public_ strkey2 - 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
- default
Namespace String - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role String - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary List<String>Roles - 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 String - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled Boolean
- display
Name String - Name displayed for the user in the Snowflake web interface.
- email String
- Email address for the user.
- first
Name String - First name of the user.
- last
Name String - Last name of the user.
- login
Name String - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change BooleanPassword - 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
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - 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:
- Has
Rsa boolPublic Key - Will be true if user as an RSA key set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Has
Rsa boolPublic Key - Will be true if user as an RSA key set.
- Id string
- The provider-assigned unique ID for this managed resource.
- has
Rsa BooleanPublic Key - Will be true if user as an RSA key set.
- id String
- The provider-assigned unique ID for this managed resource.
- has
Rsa booleanPublic Key - Will be true if user as an RSA key set.
- id string
- The provider-assigned unique ID for this managed resource.
- has_
rsa_ boolpublic_ key - Will be true if user as an RSA key set.
- id str
- The provider-assigned unique ID for this managed resource.
- has
Rsa BooleanPublic Key - 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.
- Comment string
- Default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- Default
Role string - Specifies the role that is active by default for the user’s session upon login.
- Default
Secondary List<string>Roles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- Disabled bool
- Display
Name string - Name displayed for the user in the Snowflake web interface.
- Email string
- Email address for the user.
- First
Name string - First name of the user.
- Has
Rsa boolPublic Key - Will be true if user as an RSA key set.
- Last
Name string - Last name of the user.
- Login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- Must
Change boolPassword - 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
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - 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
- Default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- Default
Role string - Specifies the role that is active by default for the user’s session upon login.
- Default
Secondary []stringRoles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- Disabled bool
- Display
Name string - Name displayed for the user in the Snowflake web interface.
- Email string
- Email address for the user.
- First
Name string - First name of the user.
- Has
Rsa boolPublic Key - Will be true if user as an RSA key set.
- Last
Name string - Last name of the user.
- Login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- Must
Change boolPassword - 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
- Rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- Rsa
Public stringKey2 - 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
- default
Namespace String - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role String - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary List<String>Roles - 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 String - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled Boolean
- display
Name String - Name displayed for the user in the Snowflake web interface.
- email String
- Email address for the user.
- first
Name String - First name of the user.
- has
Rsa BooleanPublic Key - Will be true if user as an RSA key set.
- last
Name String - Last name of the user.
- login
Name String - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change BooleanPassword - 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
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - 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
- default
Namespace string - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role string - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary string[]Roles - 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 string - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled boolean
- display
Name string - Name displayed for the user in the Snowflake web interface.
- email string
- Email address for the user.
- first
Name string - First name of the user.
- has
Rsa booleanPublic Key - Will be true if user as an RSA key set.
- last
Name string - Last name of the user.
- login
Name string - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change booleanPassword - 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
- rsa
Public stringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public stringKey2 - 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_ Sequence[str]roles - 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_ boolpublic_ key - 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_ boolpassword - 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
- rsa_
public_ strkey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa_
public_ strkey2 - 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
- default
Namespace String - Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
- default
Role String - Specifies the role that is active by default for the user’s session upon login.
- default
Secondary List<String>Roles - 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 String - Specifies the virtual warehouse that is active by default for the user’s session upon login.
- disabled Boolean
- display
Name String - Name displayed for the user in the Snowflake web interface.
- email String
- Email address for the user.
- first
Name String - First name of the user.
- has
Rsa BooleanPublic Key - Will be true if user as an RSA key set.
- last
Name String - Last name of the user.
- login
Name String - The name users use to log in. If not supplied, snowflake will use name instead.
- must
Change BooleanPassword - 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
- rsa
Public StringKey - Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
- rsa
Public StringKey2 - 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.