Skip to content

Instantly share code, notes, and snippets.

View samcolson4's full-sized avatar
🎯
Focusing

Sam Colson samcolson4

🎯
Focusing
View GitHub Profile
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/googleworkspace" {
version = "0.5.1"
hashes = [
"h1:SP8F0GD9nRwkNWoO57FwNo9Dc1OhA7Ip5wwa960mvE8=",
"zh:057243cacca422ccafe8b6655a756533ece84cce36d6f0ecf630ca6687b7bfff",
"zh:3afd8f46b10efa73b0b03156f0e1e3c45d2e61b45ca10ba4d6c7232ca382e38f",
"zh:3be5066848e7dc98ba65134b6c3d94d3e756cde94c874d1ede70f8ce7378cc1f",
@samcolson4
samcolson4 / gist:9914b2a45a1f9f9c2978c864de05cc6a
Created November 17, 2021 16:33
Terraform error output - BAO
$ terraform apply
googleworkspace_user.rodrigo-test: Refreshing state... [id=118199865844457068155]
│ Error: Error when reading or editing rodrigo-test@beachtest.net: Get "https://admin.googleapis.com/admin/directory/v1/users/118199865844457068155?alt=json&prettyPrint=false&projection=full": oauth2: cannot fetch token: 401 Unauthorized
│ Response: {
│ "error": "unauthorized_client",
│ "error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
│ }
https://apps-apis.google.com/a/feeds/emailsettings/2.0/
https://sites.google.com/feeds
https://www.googleapis.com/auth/admin.directory.customer
https://www.googleapis.com/auth/admin.directory.customer.readonly
https://www.googleapis.com/auth/admin.directory.domain
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.group.member
https://www.googleapis.com/auth/admin.directory.orgunit
https://www.googleapis.com/auth/admin.directory.resource.calendar
https://www.googleapis.com/auth/admin.directory.rolemanagement