published on Friday, Aug 14, 2026 by zenduty
published on Friday, Aug 14, 2026 by zenduty
Provides a Zenduty User Resource. This allows User to be created, updated.
Note: You cannot Delete users from this resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const exampleteam = new zenduty.Teams("exampleteam", {name: "exmaple team"});
const demouser = new zenduty.User("demouser", {
email: "demouser@test.com",
firstName: "Michael",
lastName: "Scott",
team: exampleteam.teamsId,
});
import pulumi
import pulumi_zenduty as zenduty
exampleteam = zenduty.Teams("exampleteam", name="exmaple team")
demouser = zenduty.User("demouser",
email="demouser@test.com",
first_name="Michael",
last_name="Scott",
team=exampleteam.teams_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleteam, err := zenduty.NewTeams(ctx, "exampleteam", &zenduty.TeamsArgs{
Name: pulumi.String("exmaple team"),
})
if err != nil {
return err
}
_, err = zenduty.NewUser(ctx, "demouser", &zenduty.UserArgs{
Email: pulumi.String("demouser@test.com"),
FirstName: pulumi.String("Michael"),
LastName: pulumi.String("Scott"),
Team: exampleteam.TeamsId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() =>
{
var exampleteam = new Zenduty.Teams("exampleteam", new()
{
Name = "exmaple team",
});
var demouser = new Zenduty.User("demouser", new()
{
Email = "demouser@test.com",
FirstName = "Michael",
LastName = "Scott",
Team = exampleteam.TeamsId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Teams;
import com.pulumi.zenduty.TeamsArgs;
import com.pulumi.zenduty.User;
import com.pulumi.zenduty.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 exampleteam = new Teams("exampleteam", TeamsArgs.builder()
.name("exmaple team")
.build());
var demouser = new User("demouser", UserArgs.builder()
.email("demouser@test.com")
.firstName("Michael")
.lastName("Scott")
.team(exampleteam.teamsId())
.build());
}
}
resources:
exampleteam:
type: zenduty:Teams
properties:
name: exmaple team
demouser:
type: zenduty:User
properties:
email: demouser@test.com
firstName: Michael
lastName: Scott
team: ${exampleteam.teamsId}
Example coming soon!
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: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
role: Optional[float] = None,
team: Optional[str] = None,
user_id: Optional[str] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: zenduty:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "zenduty_user" "name" {
# resource properties
}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 Zenduty.User("userResource", new()
{
Email = "string",
FirstName = "string",
LastName = "string",
Role = 0.0,
Team = "string",
UserId = "string",
});
example, err := zenduty.NewUser(ctx, "userResource", &zenduty.UserArgs{
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
Role: pulumi.Float64(0),
Team: pulumi.String("string"),
UserId: pulumi.String("string"),
})
resource "zenduty_user" "userResource" {
lifecycle {
create_before_destroy = true
}
email = "string"
first_name = "string"
last_name = "string"
role = 0
team = "string"
user_id = "string"
}
var userResource = new User("userResource", UserArgs.builder()
.email("string")
.firstName("string")
.lastName("string")
.role(0.0)
.team("string")
.userId("string")
.build());
user_resource = zenduty.User("userResource",
email="string",
first_name="string",
last_name="string",
role=float(0),
team="string",
user_id="string")
const userResource = new zenduty.User("userResource", {
email: "string",
firstName: "string",
lastName: "string",
role: 0,
team: "string",
userId: "string",
});
type: zenduty:User
properties:
email: string
firstName: string
lastName: string
role: 0
team: string
userId: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- Email string
- EmailAddress of the user
- First
Name string - Firstname of the user
- Last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- Role double
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - Team string
- Unique id of the team to which the user is to be invited
- User
Id string - The username of the Zenduty User.
- Email string
- EmailAddress of the user
- First
Name string - Firstname of the user
- Last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- Role float64
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - Team string
- Unique id of the team to which the user is to be invited
- User
Id string - The username of the Zenduty User.
- email string
- EmailAddress of the user
- first_
name string - Firstname of the user
- last_
name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team string
- Unique id of the team to which the user is to be invited
- user_
id string - The username of the Zenduty User.
- email String
- EmailAddress of the user
- first
Name String - Firstname of the user
- last
Name String - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role Double
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team String
- Unique id of the team to which the user is to be invited
- user
Id String - The username of the Zenduty User.
- email string
- EmailAddress of the user
- first
Name string - Firstname of the user
- last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team string
- Unique id of the team to which the user is to be invited
- user
Id string - The username of the Zenduty User.
- email str
- EmailAddress of the user
- first_
name str - Firstname of the user
- last_
name str - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role float
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team str
- Unique id of the team to which the user is to be invited
- user_
id str - The username of the Zenduty User.
- email String
- EmailAddress of the user
- first
Name String - Firstname of the user
- last
Name String - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role Number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team String
- Unique id of the team to which the user is to be invited
- user
Id String - The username of the Zenduty User.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- 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,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
role: Optional[float] = None,
team: Optional[str] = None,
user_id: Optional[str] = None) -> Userfunc 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)resources: _: type: zenduty:User get: id: ${id}import {
to = zenduty_user.example
id = "${id}"
}
- 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.
- Email string
- EmailAddress of the user
- First
Name string - Firstname of the user
- Last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- Role double
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - Team string
- Unique id of the team to which the user is to be invited
- User
Id string - The username of the Zenduty User.
- Email string
- EmailAddress of the user
- First
Name string - Firstname of the user
- Last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- Role float64
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - Team string
- Unique id of the team to which the user is to be invited
- User
Id string - The username of the Zenduty User.
- email string
- EmailAddress of the user
- first_
name string - Firstname of the user
- last_
name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team string
- Unique id of the team to which the user is to be invited
- user_
id string - The username of the Zenduty User.
- email String
- EmailAddress of the user
- first
Name String - Firstname of the user
- last
Name String - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role Double
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team String
- Unique id of the team to which the user is to be invited
- user
Id String - The username of the Zenduty User.
- email string
- EmailAddress of the user
- first
Name string - Firstname of the user
- last
Name string - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team string
- Unique id of the team to which the user is to be invited
- user
Id string - The username of the Zenduty User.
- email str
- EmailAddress of the user
- first_
name str - Firstname of the user
- last_
name str - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role float
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team str
- Unique id of the team to which the user is to be invited
- user_
id str - The username of the Zenduty User.
- email String
- EmailAddress of the user
- first
Name String - Firstname of the user
- last
Name String - Lastname of the user. Whitespace-only values are accepted (the Zenduty API permits them); only an empty string is rejected.
- role Number
- Account role of the user:
2for admin,3for user. Defaults to3. (1, the account owner, cannot be assigned through the API.) - team String
- Unique id of the team to which the user is to be invited
- user
Id String - The username of the Zenduty User.
Import
User can be imported using the username(ie. username of the user), e.g.
hcl
resource “zenduty_user” “demouser” {
}
$ pulumi import zenduty:index/user:User demouser username`
$ terraform state show zenduty_user.demouser
copy the output data and paste inside zenduty_user.demouser resource block and remove the id attribute
$ pulumi preview to verify the import
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
published on Friday, Aug 14, 2026 by zenduty