Google Directory Google Service Account

Overview

You can use this account type to connect the Google Directory Snaps with data sources that use the Google Service Account.



Note: When using the Google Service Account, you must pass the customID as a filter key and set the filter value (for example, C125v1gta) in the Filter attributes settings in the Google Directory Read Snap. The filter attributes are optional when using other accounts. This step is mandatory when using the Google Directory Read Snap configured with the Google Service Account because, by default, it is not associated with any customer. Learn more about finding the customer ID in the Google Workspace.

Alternatively, you can follow these steps to obtain the Customer ID:

  1. Sign in using your administrator account in Google Workspace.
  2. Navigate to your Admin Console.
  3. Click Account > Account Settings.
  4. Check for Customer ID.

Prerequisites

Limitations

  • When you read a Group Resource using the userkey as a filter key under the Filter attributes settings in the Google Directory Read Snap, a 404 error displays because the get API for the Google Resource supports only the groupkey as the filter key. Learn more.

Account settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label

String*
Required.Specify a unique name for the Snap. Modify this to be more appropriate, especially if there are more than one of the same Snap in the pipeline.

Default value: Google Service Account

Example: Google Directory - Service Account

JSON key

String/Expression*
Specify the JSON key created for the service account. Learn how to create a JSON key.

Default value: N/A

Example: root-beacon-429915-m9-12hj8jkln.json

Note: Click Validate after entering the required details to ensure that all fields have been filled accurately. Click Apply to save the settings.

Troubleshooting

Error Cause Resolution
Security Exception occurred while accessing the Google Directory API Unable to make a call and access the Google Directory API. Provide the correct credentials and retry.
Failure: IO error occurred

400 Bad Request GET https://admin.googleapis.com/admin/directory/v1/customer/my_customer/orgunits { "code": 400, "errors": [ { "domain": "global", "message": "Invalid Customer Id", "reason": "invalid" } ], "message": "Invalid Customer Id" }

The Google Service Account is not associated with any customer. Provide the customerID because the Google Service Account is not associated with any customer. Ensure that the scope is correctly defined for the action or resource being executed.
Failure: IO error occurred

directory/v1/groups?customer=my_customer { "code": 404, "errors": [ { "domain": "global", "message": "Domain not found.", "reason": "notFound" } ], "message": "Domain not found." }

The Google Service Account is not associated with any customer or domain. Provide customer or domain information because the Google Service Account is not associated with any customer or domain.