From 86bd7f4d3988fa971e3ea724d4eb6c25e1e8a2e2 Mon Sep 17 00:00:00 2001 From: WestonPlatter Date: Mon, 9 Jun 2025 15:21:48 -0600 Subject: [PATCH 1/2] fix: docs, see all comment content in default view --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2259395..72683c7 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,10 @@ Once you've completed the setup process, your provider block should look like th ```hcl provider "googleworkspace" { - # Use 'my_customer' as an alias for your account's customerId to ensure compatibility with Google's API - # For example, custom schemas on the user object will fail if the customer_id is set to your actual customer_id - # For more details: https://developers.google.com/workspace/admin/directory/reference/rest/v1/schemas/get + # Use 'my_customer' as an alias for your account's customerId to ensure compatibility with + # Google's API. For example, custom schemas on the user object will fail if the customer_id + # is set to your actual customer_id + # For more details, see: https://developers.google.com/workspace/admin/directory/reference/rest/v1/schemas/get customer_id = "my_customer" credentials = "/path/to/credentials/my-google-project-credentials-1234567890.json" From 2d38be4f29dcc2484f2b33c8442391a1b5517ed5 Mon Sep 17 00:00:00 2001 From: WestonPlatter Date: Mon, 9 Jun 2025 15:25:36 -0600 Subject: [PATCH 2/2] docs: add SSO custom schema to readme bit --- README.md | 14 ++++++++++++++ examples/import-existing-org/users.yaml | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72683c7..e7fcaf8 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,20 @@ module "googleworkspace_users_groups" { role = "member" } } + custom_schemas = [ + { + schema_name = "Client1" + schema_values = { + Role = "[\"arn:aws:iam::111111111111:role/GoogleAppsAdmin\",\"arn:aws:iam::111111111111:saml-provider/GoogleApps\"]" + } + }, + { + schema_name = "Client2" + schema_values = { + Role = "[\"arn:aws:iam::222222222222:role/xyz-identity-reader,arn:aws:iam::222222222222:saml-provider/xyz-identity-acme-gsuite\", \"arn:aws:iam::222222222222:role/xyz-identity-admin,arn:aws:iam::222222222222:saml-provider/xyz-identity-acme-gsuite\"]" + } + } + ] } } diff --git a/examples/import-existing-org/users.yaml b/examples/import-existing-org/users.yaml index d582fcf..7eb5454 100644 --- a/examples/import-existing-org/users.yaml +++ b/examples/import-existing-org/users.yaml @@ -10,10 +10,10 @@ first.last@example.com: family_name: Last given_name: First custom_schemas: - - schema_name: AWS_SSO_for_Client123 + - schema_name: AWS_SSO_for_Client1 schema_values: Role: '["arn:aws:iam::111111111111:role/GoogleAppsAdmin","arn:aws:iam::111111111111:saml-provider/GoogleApps"]' - - schema_name: AWS_SSO_for_Client456 + - schema_name: AWS_SSO_for_Client2 schema_values: Role: '["arn:aws:iam::222222222222:role/xyz-identity-reader,arn:aws:iam::222222222222:saml-provider/xyz-identity-acme-gsuite", "arn:aws:iam::222222222222:role/xyz-identity-admin,arn:aws:iam::222222222222:saml-provider/xyz-identity-acme-gsuite"]'