zitadel.HumanUser
Explore with Pulumi AI
Caution: Email can only be set verified if a password is set for the user, either with initial_password or during runtime
Resource representing a human user situated under an organization, which then can be authorized through memberships or direct grants on other resources.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumiverse.Zitadel;
return await Deployment.RunAsync(() =>
{
var @default = new Zitadel.HumanUser("default", new()
{
OrgId = data.Zitadel_org.Default.Id,
UserName = "humanfull@localhost.com",
FirstName = "firstname",
LastName = "lastname",
NickName = "nickname",
DisplayName = "displayname",
PreferredLanguage = "de",
Gender = "GENDER_MALE",
Phone = "+41799999999",
IsPhoneVerified = true,
Email = "test@zitadel.com",
IsEmailVerified = true,
InitialPassword = "Password1!",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := zitadel.NewHumanUser(ctx, "default", &zitadel.HumanUserArgs{
OrgId: pulumi.Any(data.Zitadel_org.Default.Id),
UserName: pulumi.String("humanfull@localhost.com"),
FirstName: pulumi.String("firstname"),
LastName: pulumi.String("lastname"),
NickName: pulumi.String("nickname"),
DisplayName: pulumi.String("displayname"),
PreferredLanguage: pulumi.String("de"),
Gender: pulumi.String("GENDER_MALE"),
Phone: pulumi.String("+41799999999"),
IsPhoneVerified: pulumi.Bool(true),
Email: pulumi.String("test@zitadel.com"),
IsEmailVerified: pulumi.Bool(true),
InitialPassword: pulumi.String("Password1!"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zitadel.HumanUser;
import com.pulumi.zitadel.HumanUserArgs;
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 default_ = new HumanUser("default", HumanUserArgs.builder()
.orgId(data.zitadel_org().default().id())
.userName("humanfull@localhost.com")
.firstName("firstname")
.lastName("lastname")
.nickName("nickname")
.displayName("displayname")
.preferredLanguage("de")
.gender("GENDER_MALE")
.phone("+41799999999")
.isPhoneVerified(true)
.email("test@zitadel.com")
.isEmailVerified(true)
.initialPassword("Password1!")
.build());
}
}
import pulumi
import pulumiverse_zitadel as zitadel
default = zitadel.HumanUser("default",
org_id=data["zitadel_org"]["default"]["id"],
user_name="humanfull@localhost.com",
first_name="firstname",
last_name="lastname",
nick_name="nickname",
display_name="displayname",
preferred_language="de",
gender="GENDER_MALE",
phone="+41799999999",
is_phone_verified=True,
email="test@zitadel.com",
is_email_verified=True,
initial_password="Password1!")
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumiverse/zitadel";
const _default = new zitadel.HumanUser("default", {
orgId: data.zitadel_org["default"].id,
userName: "humanfull@localhost.com",
firstName: "firstname",
lastName: "lastname",
nickName: "nickname",
displayName: "displayname",
preferredLanguage: "de",
gender: "GENDER_MALE",
phone: "+41799999999",
isPhoneVerified: true,
email: "test@zitadel.com",
isEmailVerified: true,
initialPassword: "Password1!",
});
resources:
default:
type: zitadel:HumanUser
properties:
orgId: ${data.zitadel_org.default.id}
userName: humanfull@localhost.com
firstName: firstname
lastName: lastname
nickName: nickname
displayName: displayname
preferredLanguage: de
gender: GENDER_MALE
phone: '+41799999999'
isPhoneVerified: true
email: test@zitadel.com
isEmailVerified: true
initialPassword: Password1!
Create HumanUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HumanUser(name: string, args: HumanUserArgs, opts?: CustomResourceOptions);
@overload
def HumanUser(resource_name: str,
args: HumanUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HumanUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
user_name: Optional[str] = None,
is_phone_verified: Optional[bool] = None,
is_email_verified: Optional[bool] = None,
display_name: Optional[str] = None,
initial_password: Optional[str] = None,
nick_name: Optional[str] = None,
org_id: Optional[str] = None,
phone: Optional[str] = None,
preferred_language: Optional[str] = None,
gender: Optional[str] = None)
func NewHumanUser(ctx *Context, name string, args HumanUserArgs, opts ...ResourceOption) (*HumanUser, error)
public HumanUser(string name, HumanUserArgs args, CustomResourceOptions? opts = null)
public HumanUser(String name, HumanUserArgs args)
public HumanUser(String name, HumanUserArgs args, CustomResourceOptions options)
type: zitadel:HumanUser
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 HumanUserArgs
- 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 HumanUserArgs
- 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 HumanUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HumanUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HumanUserArgs
- 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 humanUserResource = new Zitadel.HumanUser("humanUserResource", new()
{
LastName = "string",
Email = "string",
FirstName = "string",
UserName = "string",
IsPhoneVerified = false,
IsEmailVerified = false,
DisplayName = "string",
InitialPassword = "string",
NickName = "string",
OrgId = "string",
Phone = "string",
PreferredLanguage = "string",
Gender = "string",
});
example, err := zitadel.NewHumanUser(ctx, "humanUserResource", &zitadel.HumanUserArgs{
LastName: pulumi.String("string"),
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
UserName: pulumi.String("string"),
IsPhoneVerified: pulumi.Bool(false),
IsEmailVerified: pulumi.Bool(false),
DisplayName: pulumi.String("string"),
InitialPassword: pulumi.String("string"),
NickName: pulumi.String("string"),
OrgId: pulumi.String("string"),
Phone: pulumi.String("string"),
PreferredLanguage: pulumi.String("string"),
Gender: pulumi.String("string"),
})
var humanUserResource = new HumanUser("humanUserResource", HumanUserArgs.builder()
.lastName("string")
.email("string")
.firstName("string")
.userName("string")
.isPhoneVerified(false)
.isEmailVerified(false)
.displayName("string")
.initialPassword("string")
.nickName("string")
.orgId("string")
.phone("string")
.preferredLanguage("string")
.gender("string")
.build());
human_user_resource = zitadel.HumanUser("humanUserResource",
last_name="string",
email="string",
first_name="string",
user_name="string",
is_phone_verified=False,
is_email_verified=False,
display_name="string",
initial_password="string",
nick_name="string",
org_id="string",
phone="string",
preferred_language="string",
gender="string")
const humanUserResource = new zitadel.HumanUser("humanUserResource", {
lastName: "string",
email: "string",
firstName: "string",
userName: "string",
isPhoneVerified: false,
isEmailVerified: false,
displayName: "string",
initialPassword: "string",
nickName: "string",
orgId: "string",
phone: "string",
preferredLanguage: "string",
gender: "string",
});
type: zitadel:HumanUser
properties:
displayName: string
email: string
firstName: string
gender: string
initialPassword: string
isEmailVerified: false
isPhoneVerified: false
lastName: string
nickName: string
orgId: string
phone: string
preferredLanguage: string
userName: string
HumanUser 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 HumanUser resource accepts the following input properties:
- Email string
- Email of the user
- First
Name string - First name of the user
- Last
Name string - Last name of the user
- User
Name string - Username
- Display
Name string - Display name of the user
- Gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- Initial
Password string - Initially set password for the user, not changeable after creation
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- Email string
- Email of the user
- First
Name string - First name of the user
- Last
Name string - Last name of the user
- User
Name string - Username
- Display
Name string - Display name of the user
- Gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- Initial
Password string - Initially set password for the user, not changeable after creation
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- email String
- Email of the user
- first
Name String - First name of the user
- last
Name String - Last name of the user
- user
Name String - Username
- display
Name String - Display name of the user
- gender String
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password String - Initially set password for the user, not changeable after creation
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
- email string
- Email of the user
- first
Name string - First name of the user
- last
Name string - Last name of the user
- user
Name string - Username
- display
Name string - Display name of the user
- gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password string - Initially set password for the user, not changeable after creation
- is
Email booleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone booleanVerified - Is the phone verified of the user
- nick
Name string - Nick name of the user
- org
Id string - ID of the organization
- phone string
- Phone of the user
- preferred
Language string - Preferred language of the user
- email str
- Email of the user
- first_
name str - First name of the user
- last_
name str - Last name of the user
- user_
name str - Username
- display_
name str - Display name of the user
- gender str
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial_
password str - Initially set password for the user, not changeable after creation
- is_
email_ boolverified - Is the email verified of the user, can only be true if password of the user is set
- is_
phone_ boolverified - Is the phone verified of the user
- nick_
name str - Nick name of the user
- org_
id str - ID of the organization
- phone str
- Phone of the user
- preferred_
language str - Preferred language of the user
- email String
- Email of the user
- first
Name String - First name of the user
- last
Name String - Last name of the user
- user
Name String - Username
- display
Name String - Display name of the user
- gender String
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password String - Initially set password for the user, not changeable after creation
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
Outputs
All input properties are implicitly available as output properties. Additionally, the HumanUser resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Names List<string> - Loginnames
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Names []string - Loginnames
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- id String
- The provider-assigned unique ID for this managed resource.
- login
Names List<String> - Loginnames
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- id string
- The provider-assigned unique ID for this managed resource.
- login
Names string[] - Loginnames
- preferred
Login stringName - Preferred login name
- state string
- State of the user
- id str
- The provider-assigned unique ID for this managed resource.
- login_
names Sequence[str] - Loginnames
- preferred_
login_ strname - Preferred login name
- state str
- State of the user
- id String
- The provider-assigned unique ID for this managed resource.
- login
Names List<String> - Loginnames
- preferred
Login StringName - Preferred login name
- state String
- State of the user
Look up Existing HumanUser Resource
Get an existing HumanUser 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?: HumanUserState, opts?: CustomResourceOptions): HumanUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
gender: Optional[str] = None,
initial_password: Optional[str] = None,
is_email_verified: Optional[bool] = None,
is_phone_verified: Optional[bool] = None,
last_name: Optional[str] = None,
login_names: Optional[Sequence[str]] = None,
nick_name: Optional[str] = None,
org_id: Optional[str] = None,
phone: Optional[str] = None,
preferred_language: Optional[str] = None,
preferred_login_name: Optional[str] = None,
state: Optional[str] = None,
user_name: Optional[str] = None) -> HumanUser
func GetHumanUser(ctx *Context, name string, id IDInput, state *HumanUserState, opts ...ResourceOption) (*HumanUser, error)
public static HumanUser Get(string name, Input<string> id, HumanUserState? state, CustomResourceOptions? opts = null)
public static HumanUser get(String name, Output<String> id, HumanUserState 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.
- Display
Name string - Display name of the user
- Email string
- Email of the user
- First
Name string - First name of the user
- Gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- Initial
Password string - Initially set password for the user, not changeable after creation
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Last
Name string - Last name of the user
- Login
Names List<string> - Loginnames
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Name string - Username
- Display
Name string - Display name of the user
- Email string
- Email of the user
- First
Name string - First name of the user
- Gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- Initial
Password string - Initially set password for the user, not changeable after creation
- Is
Email boolVerified - Is the email verified of the user, can only be true if password of the user is set
- Is
Phone boolVerified - Is the phone verified of the user
- Last
Name string - Last name of the user
- Login
Names []string - Loginnames
- Nick
Name string - Nick name of the user
- Org
Id string - ID of the organization
- Phone string
- Phone of the user
- Preferred
Language string - Preferred language of the user
- Preferred
Login stringName - Preferred login name
- State string
- State of the user
- User
Name string - Username
- display
Name String - Display name of the user
- email String
- Email of the user
- first
Name String - First name of the user
- gender String
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password String - Initially set password for the user, not changeable after creation
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- last
Name String - Last name of the user
- login
Names List<String> - Loginnames
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Name String - Username
- display
Name string - Display name of the user
- email string
- Email of the user
- first
Name string - First name of the user
- gender string
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password string - Initially set password for the user, not changeable after creation
- is
Email booleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone booleanVerified - Is the phone verified of the user
- last
Name string - Last name of the user
- login
Names string[] - Loginnames
- nick
Name string - Nick name of the user
- org
Id string - ID of the organization
- phone string
- Phone of the user
- preferred
Language string - Preferred language of the user
- preferred
Login stringName - Preferred login name
- state string
- State of the user
- user
Name string - Username
- display_
name str - Display name of the user
- email str
- Email of the user
- first_
name str - First name of the user
- gender str
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial_
password str - Initially set password for the user, not changeable after creation
- is_
email_ boolverified - Is the email verified of the user, can only be true if password of the user is set
- is_
phone_ boolverified - Is the phone verified of the user
- last_
name str - Last name of the user
- login_
names Sequence[str] - Loginnames
- nick_
name str - Nick name of the user
- org_
id str - ID of the organization
- phone str
- Phone of the user
- preferred_
language str - Preferred language of the user
- preferred_
login_ strname - Preferred login name
- state str
- State of the user
- user_
name str - Username
- display
Name String - Display name of the user
- email String
- Email of the user
- first
Name String - First name of the user
- gender String
- Gender of the user, supported values: GENDERUNSPECIFIED, GENDERFEMALE, GENDERMALE, GENDERDIVERSE
- initial
Password String - Initially set password for the user, not changeable after creation
- is
Email BooleanVerified - Is the email verified of the user, can only be true if password of the user is set
- is
Phone BooleanVerified - Is the phone verified of the user
- last
Name String - Last name of the user
- login
Names List<String> - Loginnames
- nick
Name String - Nick name of the user
- org
Id String - ID of the organization
- phone String
- Phone of the user
- preferred
Language String - Preferred language of the user
- preferred
Login StringName - Preferred login name
- state String
- State of the user
- user
Name String - Username
Import
terraform The resource can be imported using the ID format id[:org_id][:initial_password]>
, e.g.
$ pulumi import zitadel:index/humanUser:HumanUser imported '123456789012345678:123456789012345678:Password1!'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zitadel pulumiverse/pulumi-zitadel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
zitadel
Terraform Provider.