» gitlab_users

Provides details about a list of users in the gitlab provider. The results include id, username, email, name and more about the requested users. Users can also be sorted and filtered using several options.

NOTE: Some of the available options require administrator privileges. Please visit Gitlab API documentation for more information.

» Example Usage

data "gitlab_users" "example" {
  sort = "desc"
  order_by = "name"
  created_before = "2019-01-01"
}

» Argument Reference

The following arguments are supported:

  • search - (Optional) Search users by username, name or email.

  • active - (Optional) Filter users that are active.

  • blocked - (Optional) Filter users that are blocked.

  • order_by - (Optional) Order the users' list by id, name, username, created_at or updated_at. (Requires administrator privileges)

  • sort - (Optional) Sort users' list in asc or desc order. (Requires administrator privileges)

  • extern_uid - (Optional) Lookup users by external UID. (Requires administrator privileges)

  • extern_provider - (Optional) Lookup users by external provider. (Requires administrator privileges)

  • created_before - (Optional) Search for users created before a specific date. (Requires administrator privileges)

  • created_after - (Optional) Search for users created after a specific date. (Requires administrator privileges)

» Attributes Reference

The following attributes are exported: