You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix test compilation, document user_delegate, cover concurrent-update retry (#26)
* Fix non-constant format string vet errors in tests
go vet (run by go test on Go 1.24) rejected fmt.Errorf/t.Fatalf calls passing a dynamic string as the format. The test package failed to compile; this blocked running any tests in it.
* Add docs and example for googleworkspace_user_delegate
The resource shipped in v0.8 but docs were last regenerated before it was added, leaving it the only undocumented resource. Adds the missing example and regenerates the page via tfplugindocs.
* Add unit tests for isConcurrentUpdateError retry predicate
The 412 and 400 'Invalid Input: resource_id' retry paths added for eventual-consistency handling had no coverage. Tests assert both retryable cases plus negative cases so the predicate can't silently widen.
* Correct README to reflect the community fork, not upstream HashiCorp
The README was the upstream template verbatim: it claimed HashiCorp maintainership, carried HashiCorp's experimental-status legal disclaimer, and release/issue/registry/contribution links pointing at the archived upstream. Repoints them at this fork, states the actual maintainer, notes the upstream archival, corrects the Go floor (>= 1.24), and points the Unit tests badge at the new workflow. HashiCorp's MPL copyright and Special Recognition are kept.
* Fix stale TestConsistencyCheckReachedConsistency expectations
Commit 86270a6 lowered numConsistent from 4 to 2 but did not update this test, which still asserted against currConsistent=4 and failed deterministically. Reference numConsistent directly so the test tracks the constant.
* Add Unit tests GitHub Actions workflow
The README advertised a Unit tests badge but no such workflow existed, and the test package was never run in CI. Runs build, vet, and 'make test' on pushes to main and on PRs. Pins actions to current SHAs (checkout v6.0.3, setup-go v6.4.0).
* Bump checkout and setup-go action pins in release workflow
release.yml pinned actions/checkout v3.5.3 and actions/setup-go v4.1.0; bump to current v6.0.3 / v6.4.0 to match the new test workflow.
This Google Workspace provider for Terraform allows you to manage domains, users, and groups in your Google Workspace.
10
11
11
-
This provider is a technical preview, which means it's a community supported project. It still requires extensive testing and polishing to mature into a HashiCorp officially supported project. Please [file issues](https://github.com/hashicorp/terraform-provider-googleworkspace/issues/new/choose) generously and detail your experience while using the provider. We welcome your feedback.
12
-
13
-
## Experimental Status
14
-
15
-
By using the software in this repository (the "Software"), you acknowledge that: (1) the Software is still in development, may change, and has not been released as a commercial product by HashiCorp and is not currently supported in any way by HashiCorp; (2) the Software is provided on an "as-is" basis, and may include bugs, errors, or other issues; (3) the Software is NOT INTENDED FOR PRODUCTION USE, use of the Software may result in unexpected results, loss of data, or other unexpected results, and HashiCorp disclaims any and all liability resulting from use of the Software; and (4) HashiCorp reserves all rights to make all decisions about the features, functionality and commercial release (or non-release) of the Software, at any time and without any obligation or liability whatsoever.
12
+
This is a community-maintained fork of the [`hashicorp/terraform-provider-googleworkspace`](https://github.com/hashicorp/terraform-provider-googleworkspace) provider, which was archived by HashiCorp on 2025-06-30. It is published to the Terraform Registry as [`SamuZad/googleworkspace`](https://registry.terraform.io/providers/SamuZad/googleworkspace/latest). Please [file issues](https://github.com/SamuZad/terraform-provider-googleworkspace/issues/new/choose) generously and detail your experience while using the provider. We welcome your feedback.
16
13
17
14
## Maintainers
18
15
19
-
This provider plugin is maintained by the Terraform team at [HashiCorp](https://www.hashicorp.com/)
16
+
This fork is maintained by [@SamuZad](https://github.com/SamuZad). It descends from the original `hashicorp/terraform-provider-googleworkspace`, which is no longer maintained upstream.
-[Go](https://golang.org/doc/install) >= 1.24 (to build the provider)
25
22
26
23
## Upgrading the provider
27
24
@@ -59,7 +56,7 @@ Then commit the changes to `go.mod` and `go.sum`.
59
56
60
57
## Using The provider
61
58
62
-
See the [Google Workspace Provider documentation](https://registry.terraform.io/providers/hashicorp/googleworkspace/latest/docs) to get started using the
59
+
See the [Google Workspace Provider documentation](https://registry.terraform.io/providers/SamuZad/googleworkspace/latest/docs) to get started using the
63
60
Google Workspace provider.
64
61
65
62
## Developing the Provider
@@ -78,7 +75,7 @@ In order to run the full suite of Acceptance tests, run `make testacc`.
78
75
$ make testacc
79
76
```
80
77
81
-
For guidance on common development practices such as testing changes, see the [contribution guidelines](https://github.com/hashicorp/terraform-provider-googleworkspace/blob/main/.github/CONTRIBUTING.md).
78
+
For guidance on common development practices such as testing changes, see the [contribution guidelines](https://github.com/SamuZad/terraform-provider-googleworkspace/blob/main/.github/CONTRIBUTING.md).
82
79
If you have other development questions we don't cover, please file an issue!
User Delegate resource manages delagation of access to a Gmail user mailbox. User Delegate resides under the https://www.googleapis.com/auth/gmail.settings.sharing client scope.
7
+
---
8
+
9
+
# googleworkspace_user_delegate (Resource)
10
+
11
+
User Delegate resource manages delagation of access to a Gmail user mailbox. User Delegate resides under the `https://www.googleapis.com/auth/gmail.settings.sharing` client scope.
12
+
13
+
## Example Usage
14
+
15
+
```terraform
16
+
# Copyright (c) HashiCorp, Inc.
17
+
# SPDX-License-Identifier: MPL-2.0
18
+
resource "googleworkspace_user" "manager" {
19
+
primary_email = "manager@example.com"
20
+
password = "34819d7beeabb9260a5c854bc85b3e44"
21
+
hash_function = "MD5"
22
+
23
+
name {
24
+
family_name = "Scott"
25
+
given_name = "Michael"
26
+
}
27
+
}
28
+
29
+
resource "googleworkspace_user" "assistant" {
30
+
primary_email = "assistant@example.com"
31
+
password = "34819d7beeabb9260a5c854bc85b3e44"
32
+
hash_function = "MD5"
33
+
34
+
name {
35
+
family_name = "Martin"
36
+
given_name = "Pam"
37
+
}
38
+
}
39
+
40
+
# Grant the assistant delegated access to the manager's Gmail mailbox.
0 commit comments