Transfer a departing employee's Google Docs and Calendar
Build a workflow triggered by an offboarding event specifying the departing user and the recipient. Use Google Workspace admin APIs (Data Transfer / Drive / Calendar) to reassign Docs ownership and move Calendar events to the recipient. Confirm each transfer, handle large document sets with pagination, and report items that couldn't be moved. Retry transient errors and require the recipient to be validated. Output a summary of what was transferred.
What this prompt builds
Reassign a leaver's Google Docs and Calendar to their manager so institutional knowledge isn't lost.
The problem
When employees leave, their Docs and Calendar events are often locked away or deleted with the account, destroying institutional knowledge. Manual transfers via the admin console are tedious and easily skipped.
Solution and impact
This workflow transfers the departing user's Drive documents and Calendar to a designated recipient automatically. Knowledge is preserved and handover is effortless during offboarding.