[Issue] Сouldn't find a GitLab user, version 3.9.1

Created by: big-bag

Terraform Version

1.1.5

Affected Resource(s)

List of the resources:

  • gitlab_user

Terraform Configuration Files

main.tf

terraform {
  required_providers {
    gitlab = {
      source  = "gitlabhq/gitlab"
      version = "3.9.1"
    }
  }
}

provider "gitlab" {
  token = var.gitlab_token
}

locals {
  users = [
    "username@domain.com"
  ]
}

data "gitlab_user" "gitlab_user" {
  for_each = toset(local.users)

  email = each.key
}

Error Output

https://gist.github.com/big-bag/5a1fa6240fef04543ce21dc780eb6145

Expected Behavior

Terraform will receive information about users in GitLab.

Actual Behavior

изображение

Steps to Reproduce

Steps required to reproduce the issue:

  • terraform plan

Important Factoids

  1. We use Terraform Cloud
  2. We log in to GitLab through Google using SAML