
Recipe Sync Contacts To Sheet
A straightforward recipe for dumping your Google Workspace directory into a spreadsheet when you need contact data in a more workable format. Pulls names, emails, and phone numbers from your domain's people directory and writes them to Google Sheets with proper headers. The three-step process is clean: fetch contacts with the People API, create the header row, then append each contact as a new row. Honestly, this feels like something you'd build yourself anyway when HR asks for a contact export, but having the exact API calls and parameters laid out saves you from digging through Google's documentation.
- skills.sh installs
- 31.3K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill recipe-sync-contacts-to-sheet --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
- List contacts:
gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json - Create a sheet:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]' - Append each contact row:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Gws Admin Reports31.3K
- Recipe Generate Report From Sheet31.2K
- Recipe Label And Archive Emails31.1K
- Recipe Reschedule Meeting31.1K
- Recipe Save Email To Doc31.1K
- Recipe Block Focus Time31K
- Recipe Watch Drive Changes31K
- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
- Recipe Schedule Recurring Event30.9K
- Recipe Review Overdue Tasks30.8K
- Recipe Copy Sheet For New Month30.8K
- Recipe Review Meet Participants30.8K
- Recipe Batch Invite To Event30.8K
- Recipe Collect Form Responses30.8K
- Recipe Create Events From Sheet30.7K
- Persona It Admin30.7K
- Recipe Create Vacation Responder30.7K
- Recipe Share Folder With Team30.7K
- Persona Customer Support30.7K
- Recipe Forward Labeled Emails30.7K