This resource allows you to create and manage GitLab users. Note your provider will need to be configured with admin-level access for this resource to work.
resource "gitlab_user" "example" { name = "Example Foo" username = "example" password = "superPassword" email = "[email protected]" is_admin = true projects_limit = 4 can_create_group = false }
The following arguments are supported:
name
- (Required) The name of the user.
username
- (Required) The username of the user.
password
- (Required) The password of the user.
email
- (Required) The e-mail address of the user.
is_admin
- (Optional) Boolean, defaults to false. Whether to enable administrative priviledges for the user.
projects_limit
- (Optional) Integer, defaults to 0. Number of projects user can create.
can_create_group
- (Optional) Boolean, defaults to false. Whether to allow the user to create groups.
skip_confirmation
- (Optional) Boolean, defaults to true. Whether to skip confirmation.
The resource exports the following attributes:
id
- The unique id assigned to the user by the GitLab server.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/gitlab/r/user.html