Sync Google Calendar and Drive between accounts
Recipe ToolsDirectory ServicesCloud PlatformDocument/FileSales EnablementData ParserMarketingUtilities
What it does
When someone calls this automation via a function, it transfers a Google Calendar and Google Drive from one account to another. It logs the transfer status and outcomes to a Google Sheet so the team has a record of what moved.
Who it's for
IT teams who need to migrate Google Workspace data when someone leaves or changes roles.
How teams use this
Offboard an employee from Google Workspace
Transfer the departing employee's calendar and drive to their manager or a designated team member in one automated step. The sheet logs when each transfer started and finished so IT has proof of completion.
Migrate data when someone changes teams
Run the transfer for an employee moving to a new department so their calendar and drive go to the new team's shared account. The same automation works for internal moves without any changes.
Add Gmail forwarding to the transfer
Extend this automation to also set up email forwarding from the old account to the new one during the migration. Include a forwarding rule in the function call so all three services move together.
Notify teams when transfers complete
Add a notification step that sends a message to a Slack channel or email when both the calendar and drive transfers finish. Only notify if there are no errors so the team knows the migration succeeded.
How it works
- Receive the transfer request. A function call starts this automation with the source and destination Google accounts that need the calendar and drive transferred.
- Transfer the calendar. Insert a data transfer request in Google Workspace to move the calendar from the source account to the destination account, then wait for it to finish.
- Transfer the drive. Insert a data transfer request in Google Workspace to move Google Drive from the source account to the destination account.
- Log the transfer outcome. Update rows in a Google Sheet with the transfer status, timestamps, and any errors so the team has a complete record of the migration.
- Parse the response data. Parse the Json document from Google Workspace to extract transfer IDs and status details for logging and troubleshooting purposes.