Skip to main content

Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18

Workflow preview

Workflow preview
100%
Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18 preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is This For? IT Ops, HR, and Security teams automating employee offboarding. Zero manual work: Disable access to Redmine, GitLab, and more right after their last day. Boost security, cut ris...

Best for

  • HR automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.noop, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by BHSoft.

Original n8n.io source

1.1 Workflow description

Title
Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18
Workflow name
Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18

📌 Who is This For?

IT Ops, HR, and Security teams automating employee offboarding. Zero manual work: Disable access to Redmine, GitLab, and more- right after their last day. Boost security, cut risks, and stay compliant.

📌 The Problem It Solves

Offboarding is messy and slow:

  • HR flags ending contracts.
  • IT hunts down accounts manually (Redmine, GitLab, etc.).
  • Misses happen, risks linger.

This n8n workflow queries Odoo 18 daily, spots offboardees, and locks accounts automatically.

📌 What It Does

  • Triggers daily (e.g., 5 PM weekdays).
  • Queries Odoo 18 for employees ending today.
  • Filters active users needing offboarding.
  • Checks & Locks Redmine accounts via API.
  • Checks & Revokes GitLab access via API.
  • Notifies via Slack/Teams/email with summary.
  • Handles Errors: Retries failures, logs issues.

📌 Quick setup

  1. Odoo 18 API (read employee end dates/last shifts).
  2. Redmine Admin API key.
  3. GitLab Admin token (for locking users).
  4. Slack/Teams webhook or SMTP for alerts.
  5. Cron schedule (e.g., daily 5 PM weekdays, skip weekends).

📌 Customize It

  • Add Systems: Jira, Confluence, LDAP—easy toggles.
  • Notification: Full reports or alerts-only.
  • Error Rules: Retries, escalations.
  • Audit Logs: Save to DB, S3, Sheets, or dashboard.

📌 Results

100% automated: Accounts locked on exit day. No orphans, no workload, full compliance.

📌 Workflow in Action

  1. Schedule trigger fires.
  2. Pull Odoo offboardees.
  3. API checks & disables Redmine/GitLab.
  4. Logs + summary notification.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - END

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 2 - Step2: Handle get today

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Step3: Set Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Step5: If total_count is not equal to 0 = true

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Step6: Check if there is a valid record.

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Step7: If hasRecords is empty==> true

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Step1: Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Step8: Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - END1

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 15 - Step11: Get user info in RM6

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Step12: Check if there is a record or not?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Step13: Update the user's status to "locked" on RM6

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Step14: Remove the user from all groups in RM 6

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Step15: Get membership list of user in RM 6

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Step16: Get memberships_id

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Step17: Loop Over memberships_id

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 22 - Step18: Delete membership in project on RM 6

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Step19: Get user information in Gitlab

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 24 - Step20: Check if there is a record = true

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Showing the first 24 of 37 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18
Complexity advanced
Nodes 37
Categories HR
Author BHSoft
Published 19 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11941/11941.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated employee offboarding: lock Redmine & GitLab accounts using Odoo 18 do?

Who is This For? IT Ops, HR, and Security teams automating employee offboarding. Zero manual work: Disable access to Redmine, GitLab, and more right after their last day. Boost security, cut ris...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR use case.