» gitlab_user

Provides details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.

» Example Usage

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

» Argument Reference

The following arguments are supported:

  • email - (Optional) The e-mail address of the user. (Requires administrator privileges)

  • username - (Optional) The username of the user.

  • user_id - (Optional) The ID of the user.

Note: only one of email, user_id or username must be provided.

» Attributes Reference

Note: some attributes might not be returned depending on if you're an admin or not. Please refer to doc for more details.