Employee Offboarding Workflow

n8n workflow Google Workspace

Automate your employee offboarding end to end.

Overview

When an employee leaves, there are a dozen manual tasks that need to happen: suspending their Google account, notifying IT and payroll, collecting equipment, and more. This workflow handles it all automatically the moment an offboarding form is submitted.

What it does

What you need

What's included

How to set it up

Setup takes around 30-45 minutes. Here's what's involved:

  1. 1 Copy the Google Form and Google Sheet

    Make a copy of the provided Google Form and Google Sheet templates. These will be your own private copies. Changes you make won't affect other buyers.

    Important: copying does not carry over the connection between the form and sheet. You will need to re-link them manually. In Google Forms go to Responses → Link to Sheets and select your copied sheet.
  2. 2 Set up your Google Cloud Project

    Create a Google Cloud Project and enable the Gmail API, Google Sheets API, and Admin SDK API. Google provides official documentation for this step.

  3. 3 Create a Service Account and enable Domain-wide Delegation

    Create a Service Account in Google Cloud and enable Domain-wide Delegation so the workflow can automatically suspend Google accounts on an employee's last day.

    Domain-wide Delegation can take up to 30 minutes to propagate after being enabled.
  4. 4 Connect your credentials in n8n

    Add three credentials to your n8n instance: Gmail OAuth2, Google Sheets OAuth2, and the Google Service Account. Our setup guides walk you through each one step by step.

  5. 5 Configure and download your workflow

    Enter your company details, Google Sheet ID, and credential IDs into the configurator. Download your pre-configured workflow JSON and Apps Script files.

  6. 6 Import into n8n and add the Apps Script

    Import the workflow JSON into n8n and paste the Apps Script into your Google Form's script editor. Run the setup() function once to register the form trigger.

  7. 7 Test the workflow

    Submit a test offboarding form and confirm all four notification emails send correctly and the exit record appears in your Google Sheet.

Ready to set this up?

Configure this template →