Recipe Sync Contacts To Sheet

by googleworkspacea3768d0e82adNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Export Google Contacts directory to a Google Sheets spreadsheet.

AI-generated overview

Exports a Google Contacts directory into a Google Sheets spreadsheet as rows of names, emails and phone numbers.

What it does
This recipe describes a three-step procedure for moving contact data from Google Contacts into a Google Sheets spreadsheet. It lists directory people with a read mask covering names, email addresses and phone numbers, creates a sheet with Name, Email and Phone headers, then appends one row per contact. The deliverable is a populated spreadsheet containing the directory listing.
When to use it
Use it when you need a spreadsheet copy of a Google Workspace directory listing, for example to review, share or process contact details outside the contacts interface. It suits one-off or repeatable exports of directory profiles rather than personal contact management.
Requirements
Requires the gws command-line tool plus the gws-people and gws-sheets skills, and authenticated access to Google Contacts and Google Sheets. A target spreadsheet ID is needed. No scripts ship with the skill; it is instructions only.

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", "[email protected]", "+1-555-0100"]'

Source and attribution

Source:googleworkspace/cliinskills/recipe-sync-contacts-to-sheetat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal