Skills Productivity Sync Contacts To Sheet

Sync Contacts To Sheet

v20260401
recipe-sync-contacts-to-sheet
Exports a Google Contacts directory into a Google Sheets spreadsheet by listing domain people via the gws-people tool and appending the retrieved name, email, and phone data row by row.
Get Skill
225 downloads
Overview

Export Google Contacts to Sheets

PREREQUISITE: Load the following skills to execute this recipe: gws-people, gws-sheets

Export Google Contacts directory to a Google Sheets spreadsheet.

Steps

  1. List contacts: gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json
  2. Create a sheet: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]'
  3. Append each contact row: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'
Info
Category Productivity
Name recipe-sync-contacts-to-sheet
Version v20260401
Size 995B
Updated At 2026-04-08
Language