1. Packages
  2. Dynatrace
  3. API Docs
  4. User
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.User

Explore with Pulumi AI

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,
         user_name: Optional[str] = None,
         groups: Optional[Sequence[str]] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
public User(String name, UserArgs args)
public User(String name, UserArgs args, CustomResourceOptions options)
type: dynatrace:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Dynatrace.User("userResource", new()
{
    Email = "string",
    FirstName = "string",
    LastName = "string",
    UserName = "string",
    Groups = new[]
    {
        "string",
    },
});
Copy
example, err := dynatrace.NewUser(ctx, "userResource", &dynatrace.UserArgs{
	Email:     pulumi.String("string"),
	FirstName: pulumi.String("string"),
	LastName:  pulumi.String("string"),
	UserName:  pulumi.String("string"),
	Groups: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var userResource = new User("userResource", UserArgs.builder()
    .email("string")
    .firstName("string")
    .lastName("string")
    .userName("string")
    .groups("string")
    .build());
Copy
user_resource = dynatrace.User("userResource",
    email="string",
    first_name="string",
    last_name="string",
    user_name="string",
    groups=["string"])
Copy
const userResource = new dynatrace.User("userResource", {
    email: "string",
    firstName: "string",
    lastName: "string",
    userName: "string",
    groups: ["string"],
});
Copy
type: dynatrace:User
properties:
    email: string
    firstName: string
    groups:
        - string
    lastName: string
    userName: string
Copy

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 This property is required. string
User's email address
FirstName This property is required. string
User's first name
LastName This property is required. string
User's last name
UserName This property is required. string
The User Name
Groups List<string>
List of user's user group IDs
Email This property is required. string
User's email address
FirstName This property is required. string
User's first name
LastName This property is required. string
User's last name
UserName This property is required. string
The User Name
Groups []string
List of user's user group IDs
email This property is required. String
User's email address
firstName This property is required. String
User's first name
lastName This property is required. String
User's last name
userName This property is required. String
The User Name
groups List<String>
List of user's user group IDs
email This property is required. string
User's email address
firstName This property is required. string
User's first name
lastName This property is required. string
User's last name
userName This property is required. string
The User Name
groups string[]
List of user's user group IDs
email This property is required. str
User's email address
first_name This property is required. str
User's first name
last_name This property is required. str
User's last name
user_name This property is required. str
The User Name
groups Sequence[str]
List of user's user group IDs
email This property is required. String
User's email address
firstName This property is required. String
User's first name
lastName This property is required. String
User's last name
userName This property is required. String
The User Name
groups List<String>
List of user's user group IDs

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 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,
        groups: Optional[Sequence[str]] = None,
        last_name: Optional[str] = None,
        user_name: 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)
resources:  _:    type: dynatrace:User    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Email string
User's email address
FirstName string
User's first name
Groups List<string>
List of user's user group IDs
LastName string
User's last name
UserName string
The User Name
Email string
User's email address
FirstName string
User's first name
Groups []string
List of user's user group IDs
LastName string
User's last name
UserName string
The User Name
email String
User's email address
firstName String
User's first name
groups List<String>
List of user's user group IDs
lastName String
User's last name
userName String
The User Name
email string
User's email address
firstName string
User's first name
groups string[]
List of user's user group IDs
lastName string
User's last name
userName string
The User Name
email str
User's email address
first_name str
User's first name
groups Sequence[str]
List of user's user group IDs
last_name str
User's last name
user_name str
The User Name
email String
User's email address
firstName String
User's first name
groups List<String>
List of user's user group IDs
lastName String
User's last name
userName String
The User Name

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.