gitlab_user resource has always `skip_confirmation=false`
Bug Report
When creating new user the attribute skip_confirmation
has always the value false
Relevant Terraform Configuration
resource "gitlab_user" "example" {
name = "Example Foo"
username = "example"
password = "superPassword"
email = "gitlab@user.create"
is_admin = false
projects_limit = 4
can_create_group = false
is_external = true
reset_password = false
}
Relevant Log Output
LOG from v.3.19.0
---[ REQUEST ]---------------------------------------
POST /api/v4/users HTTP/1.1
Host: xxx
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-gitlab/3.19.0
Content-Length: 231
Accept: application/json
Authorization: Bearer xxx
Content-Type: application/json
Accept-Encoding: gzip
{
"email": "gitlab@user.create",
"password": "superPassword",
"reset_password": false,
"username": "example",
"name": "Example Foo",
"projects_limit": 4,
"admin": false,
"can_create_group": false,
"skip_confirmation": true,
"external": true,
"note": ""
}
LOG from v.3.20.0
---[ REQUEST ]---------------------------------------
POST /api/v4/users HTTP/1.1
Host: xxx
User-Agent: Terraform/1.3.4 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-gitlab/3.20.0
Content-Length: 232
Accept: application/json
Authorization: Bearer xxx
Content-Type: application/json
Accept-Encoding: gzip
{
"email": "gitlab@user.create",
"password": "superPassword",
"reset_password": false,
"username": "example",
"name": "Example Foo",
"projects_limit": 4,
"admin": false,
"can_create_group": false,
"skip_confirmation": false,
"external": true,
"note": ""
}
Additional Details
- GitLab Terraform Provider Version:
see logs
- GitLab Version:
see logs
- Terraform Version:
see logs
Edited by Svetoslav Batchovski