Groups data source in the Terraform Googleworkspace provider. Groups resides under the https://www.googleapis.com/auth/admin.directory.group
client scope.
data "googleworkspace_groups" "my-domain-groups" {
}
output "num_groups" {
value = length(data.googleworkspace_groups.my-domain-groups.groups)
}
groups
Read-Only: