gitlab_user (Data Source)

The gitlab_user data source allows details of a user to be retrieved by either the user ID, username or email address.

Upstream API: GitLab REST API docs

Example Usage

data "gitlab_user" "example" {
  username = "myuser"
}

# Example using `for_each`
data "gitlab_user" "example-two" {
  for_each = toset(["user1", "user2", "user3"])

  username = each.value
}

Schema

Optional

Read-Only