# Employee onboarding & offboarding with MySQL: n8n workflow

> Started by another system calling it, and works across Email and MySQL. 12 steps, 1 branch: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/employee-onboarding-and-offboarding-with-mysql (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Employee onboarding & offboarding with MySQL

Started by another system calling it, and works across Email and MySQL. 12 steps, 1 branch: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Femployee-onboarding-and-offboarding-with-mysql)

**12 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Logic 1 Service 10

The steps in the order they run, from what starts it.

- 1 **Webhook Trigger (HRIS)** Webhook *Starts it*
- 2 **Check Employee Status** If *Logic*
- 3 **Create User in Azure AD** Http Request *Service*
- 4 **Offboard (Deactivate User)** Http Request *Service*
- 5 **Add User to Teams** Http Request *Service*
- 6 **Create Offboarding Task (ClickUp)** Http Request *Service*
- 7 **Create Folder in SharePoint** Http Request *Service*
- 8 **Update Log (MySQL)** My Sql *Service*
- 9 **Create Onboarding Task (ClickUp)** Http Request *Service*
- 10 **Send HR Offboarding Email** Email Send *Service*
- 11 **Insert Log (MySQL)** My Sql *Service*
- 12 **Send HR Notification (Email)** Email Send *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 12, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Email, MySQL
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Email and MySQL accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 12 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 12 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Femployee-onboarding-and-offboarding-with-mysql)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[MySQL](https://millionrounds.com/workflows?service=MySQL#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Automate personalized email campaigns with Google Docs** 12 steps · Email, Google Docs](https://millionrounds.com/workflow/automate-personalized-email-campaigns-with-google-docs)
- [**Track shipments with DHL and Delhivery APIs** 12 steps · Email, Google Sheets](https://millionrounds.com/workflow/track-shipments-with-dhl-and-delhivery-apis)
- [**AI Portfolio Risk Analyzer for Zerodha with Perplexity** 12 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/ai-portfolio-risk-analyzer-for-zerodha-with-perplexity)
- [**AI-driven inventory management with OpenAI and ERP** 12 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/ai-driven-inventory-management-with-openai-and-erp)
- [**Automated employee attendance & salary deduction** 12 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/automated-employee-attendance-and-salary-deduction)
- [**Automate CSAT surveys with Freshdesk** 13 steps · Email, Google Sheets](https://millionrounds.com/workflow/automate-csat-surveys-with-freshdesk)
