The commvault_user Terraform Resource

Updated

On this page

Use the commvault_user resource type to create and delete a user in the CommCell environment.

Syntax

resource "commvault_user" "<local name>"{ 

user_name = "<user name>"

password = "<password in plain English text>"

description = "<sample description>"

full_name = "<full name>"

email = "<email address>"

}

Where local name is the name that is used by the Commvault Terraform module to refer the resource and, has no significance in the target platform.

Arguments

Name

Description

Required

Comments

user_name

The user name for the account.

Yes

The user name must be unique in the CommCell environment.

password

The password for the account.

Yes

Use a password according to the strength that is enforced by the Commvault administrator.

description

The description of the user account.

No

full_name

The first, middle, and last names of the user.

No

email

The email address of the user.

Yes

The email address must be unique in the CommCell environment.

company_id

The ID of the company that you want the user to associate with.

No

Example

This resource block manages the jdoe user.

resource "commvault_user" "user1"{

user_name = "jdoe"

password = "commvault"

description = "This is a test user"

full_name = "John Doe"

email = "jdoe@cmvt.com"

}