For this data source, I always get bad request 404 without any description.
But Using other data sources for example
data "googleworkspace_group" "mail_group" {for_each = toset(var.mail_groups)email = each.value}
data "googleworkspace_group_members" "members" {for_each = data.googleworkspace_group.mail_groupgroup_id = each.value.id}
data "googleworkspace_user" "user_details" {for_each = {for idx, member in flatten([for group in data.googleworkspace_group_members.members : group.members]) : "${member.email}-${idx}" => member}primary_email = split("-", each.key)[0]}
output "user_details" {value = { for email, details in data.googleworkspace_user.user_details : email => details.suspended }}
Debug Output
│ Error: Error when reading or editing users: googleapi: Error 400: Bad Request, badRequest
│
│ with module.google_workspace.data.googleworkspace_users.mygoogleusers,
│ on ../../modules/google_workspace/main.tf line 34, in data "googleworkspace_users" "mygoogleusers":
│ 34: data "googleworkspace_users" "mygoogleusers" {}
I couldn't figure out and find a relative issue about it, Could you please check out?
Hi there, I have a bad request for a specific data source.
Terraform Version
version = "~> 0.7"
Affected Resource(s)
data "googleworkspace_users" "mygoogleusers" {}
output "num_users" {
value = data.googleworkspace_users.mygoogleusers.users
}
For this data source, I always get bad request 404 without any description.
But Using other data sources for example
data "googleworkspace_group" "mail_group" {
for_each = toset(var.mail_groups)
email = each.value
}
data "googleworkspace_group_members" "members" {
for_each = data.googleworkspace_group.mail_group
group_id = each.value.id
}
data "googleworkspace_user" "user_details" {
for_each = {
for idx, member in flatten([
for group in data.googleworkspace_group_members.members : group.members
]) : "${member.email}-${idx}" => member
}
primary_email = split("-", each.key)[0]
}
output "user_details" {
value = { for email, details in data.googleworkspace_user.user_details : email => details.suspended }
}
Debug Output
I couldn't figure out and find a relative issue about it, Could you please check out?