gitlab_user (Resource)

The gitlab_user resource allows to manage the lifecycle of a user.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_user" "example" {
  name             = "Example Foo"
  username         = "example"
  password         = "superPassword"
  email            = "gitlab@user.create"
  is_admin         = true
  projects_limit   = 4
  can_create_group = false
  is_external      = true
  reset_password   = false
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# You can import a user to terraform state using `terraform import <resource> <id>`.
# The `id` must be an integer for the id of the user you want to import,
# for example:
terraform import gitlab_user.example 42