cleanup-lead-owners

Reassign HubSpot contacts, companies, and deals from non-employees to active owners.

58|16|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/TomGranot/hubspot-admin-skills --skill cleanup-lead-owners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-lead-owners
Source: https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/cleanup-lead-owners
Command: npx skills add https://github.com/TomGranot/hubspot-admin-skills --skill cleanup-lead-owners

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reassigns ownership from departed HubSpot users to active owners to prevent orphaned records and ensure data continuity.

Core Features & Use Cases

  • Reassign ownership of contacts, companies, and deals from non-employees to active owners using a defined policy (round-robin or rules-based routing).
  • Deactivate former user accounts in HubSpot to prevent access while preserving historical ownership.
  • Pairs with the assign-unowned-contacts skill to handle any orphaned records and maintain complete ownership hygiene.
  • Use Case: When a team member leaves, run this skill to automatically reassign their owned records and streamline offboarding.

Quick Start

Remove departed HubSpot users and reassign their records to an active owner.

Frequently Asked Questions about cleanup-lead-owners

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reassign HubSpot contacts and deals when an employee leaves?

Reassigning HubSpot records during offboarding requires a defined ownership policy, such as round-robin or rules-based routing, to transfer contacts, companies, and deals from departed users to active owners. This requires a HubSpot API token and Python environment.

What is the best way to prevent orphaned records in HubSpot CRM data?

Preventing orphaned records in HubSpot involves reassigning ownership from non-employee users to active owners. Pairing this reassignment with an unowned contacts assignment step ensures complete data hygiene and continuity.

Can I use round-robin routing to reassign HubSpot ownership for offboarded users?

Yes, you can use round-robin routing to reassign HubSpot ownership for offboarded users. The workflow supports both round-robin and rules-based policies to redistribute contacts, companies, and deals to active team members.

Do I need a Python environment and HubSpot API token to automate CRM data hygiene?

Yes, automating CRM data hygiene for record reassignment requires a Python environment with the hubspot-api-client installed and a valid HubSpot API token to execute the ownership cleanup workflow.

Does HubSpot record reassignment also deactivate the former user accounts?

HubSpot record reassignment workflows can deactivate former user accounts to prevent further access while preserving historical ownership data, ensuring a secure and complete offboarding process.