{"id":37207370,"url":"https://github.com/jsifuentes/cq-source-googleworkspace","last_synced_at":"2026-01-14T23:51:01.090Z","repository":{"id":211800302,"uuid":"729978278","full_name":"jsifuentes/cq-source-googleworkspace","owner":"jsifuentes","description":"A Google Workspace source plugin for CloudQuery","archived":false,"fork":false,"pushed_at":"2025-03-10T14:27:39.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T15:36:07.122Z","etag":null,"topics":["cloudquery","cloudquery-provider"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsifuentes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-10T23:15:14.000Z","updated_at":"2025-03-10T14:27:43.000Z","dependencies_parsed_at":"2023-12-23T01:42:07.601Z","dependency_job_id":"7ff64ef4-8cea-41ba-ac33-2d39ec2fdcd2","html_url":"https://github.com/jsifuentes/cq-source-googleworkspace","commit_stats":null,"previous_names":["jsifuentes/cq-source-googleworkspace"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jsifuentes/cq-source-googleworkspace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsifuentes%2Fcq-source-googleworkspace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsifuentes%2Fcq-source-googleworkspace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsifuentes%2Fcq-source-googleworkspace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsifuentes%2Fcq-source-googleworkspace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsifuentes","download_url":"https://codeload.github.com/jsifuentes/cq-source-googleworkspace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsifuentes%2Fcq-source-googleworkspace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudquery","cloudquery-provider"],"created_at":"2026-01-14T23:51:00.469Z","updated_at":"2026-01-14T23:51:01.077Z","avatar_url":"https://github.com/jsifuentes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudQuery Google Workspace Source Plugin\n\n[![test](https://github.com/jsifuentes/cq-source-googleworkspace/actions/workflows/test.yaml/badge.svg)](https://github.com/jsifuentes/cq-source-googleworkspace/actions/workflows/test.yaml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jsifuentes/cq-source-googleworkspace)](https://goreportcard.com/report/github.com/jsifuentes/cq-source-googleworkspace)\n\n[View this plugin on CloudQuery Hub](https://hub.cloudquery.io/plugins/source/jsifuentes/googleworkspace/)\n\nA Google Workspace source plugin for CloudQuery that loads data from Google\nWorkspace to any database, data warehouse or data lake supported by\n[CloudQuery](https://www.cloudquery.io/), such as sqlite, PostgreSQL, BigQuery, Athena,\nand many more.\n\n## Links\n\n- [CloudQuery Quickstart Guide](https://www.cloudquery.io/docs/quickstart)\n- [Supported Tables](docs/tables/README.md)\n\n## Configuration\n\nThe following source configuration file will sync to a sqlite database. See\n[the CloudQuery Quickstart](https://www.cloudquery.io/docs/quickstart) for more\ninformation on how to configure the source and destination.\n\nHow to find your Google Workspace Customer ID:\nhttps://support.google.com/a/answer/10070793?hl=en\n\nTo authenticate to Google Workspace, you can use either OAuth or a service account.\nSee the section below for how to configure each.\n\n```yaml\nkind: source\nspec:\n  name: \"googleworkspace\"\n  path: \"jsifuentes/googleworkspace\"\n  registry: \"cloudquery\"\n  version: \"v1.2.1\"\n  destinations:\n    - \"sqlite\"\n  spec:\n    customer_id: your Google Workspace Customer ID\n    # either `oauth` or `service_account` must be provided.\n    oauth:\n      client_id: your OAuth client ID\n      client_secret: your OAuth client secret\n      # token_file: ./token.json\n\n    # or\n    service_account:\n      json_string: '{\"type\": \"service_account\",\"project_id\": \"...\", ...}'\n      impersonate_email: email@yourdomain.com\n```\n\n### OAuth\n\nYou can get your own OAuth credentials using\n[this guide](https://developers.google.com/identity/protocols/oauth2#1.-obtain-oauth-2.0-credentials-from-the-dynamic_data.setvar.console_name-.).\nWhen creating your OAuth Client ID, you should select \"Desktop app\". You also need to enable the Admin SDK API for your Cloud Project.\n\nIf you provide `token_file`, the plugin will write to the file your OAuth access token and refresh token. It can help avoid the need to re-authenticate every time the plugin runs.\nIf you run the plugin in an automated environment, you should probably authenticate with a service account.\n\n### Service Account\n\nTo authenticate with a service account, you need to provide a JSON key file. You can create a service account key file in the Google Cloud Console.\nYou also need to enable the Admin SDK API for your Cloud Project.\n\nBecause you are accessing the Admin SDK via a service account, you need to impersonate a user with the necessary permissions to access the data you want to query.\nIn Google Workspace, your service account can only impersonate a user if the Client ID of the service account is granted domain-wide delegation.\n\nYou can follow this guide to grant your service account domain-wide delegation: [link](https://developers.google.com/cloud-search/docs/guides/delegation#delegate_domain-wide_authority_to_your_service_account)\n\nWhen granting domain wide delegation, you need to provide a list of OAuth scopes. Here is the list you provide: (they are all read-only scopes)\n\n```\nhttps://www.googleapis.com/auth/admin.directory.customer.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly,https://www.googleapis.com/auth/admin.directory.group.member.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.orgunit.readonly,https://www.googleapis.com/auth/admin.directory.user.alias.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.userschema.readonly,https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly,https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly,https://www.googleapis.com/auth/admin.chrome.printers.readonly\n```\n\n## Development\n\n### Run tests\n\n```bash\nmake test\n```\n\n### Run linter\n\n```bash\nmake lint\n```\n\n### Generate docs\n\n```bash\nmake gen-docs\n```\n\n### Release a new version\n\n1. Run `git tag v1.0.0` to create a new tag for the release (replace `v1.0.0`\n   with the new version number)\n2. Run `git push origin v1.0.0` to push the tag to GitHub\n\nOnce the tag is pushed, a new GitHub Actions workflow will be triggered to build\nthe release binaries and create the new release on GitHub. To customize the\nrelease notes, see the Go releaser\n[changelog configuration docs](https://goreleaser.com/customization/changelog/#changelog).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsifuentes%2Fcq-source-googleworkspace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsifuentes%2Fcq-source-googleworkspace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsifuentes%2Fcq-source-googleworkspace/lists"}