This article provide a summary on how to
split domain of an organization into two customers/tenants.
This article applies to MachPanel build v8.2.50 and above
Scenario Overview
Existing Setup:
- Customer-A
- OrgA
- Domains:
- DomainA.com
- DomainB.com
- Users exist in both domains


Required Target Setup
- Existing Customer (Customer-A)
- OrgA
- Domain: DomainA.com only
- Mailboxes: All users should belong to DomainA.com
- New Customer (Customer-B)
- OrgB
- Domain: DomainB.com only
- Mailboxes: Users migrated from OrgA (DomainB.com users)
Solution Steps
Step-1: Create New Customer
- Create Customer-B with Organization Name as “OrgB” but with dummy domain “DomainC.com” since the panel already has domain DomainB.com.

- Assign a temporary (dummy) domain (e.g., DomainC.com)
- Reason: DomainB.com is already associated with OrgA in the panel.

Step-2: Move Users on Backend
- Move users of DomainB.com from OrgA to OrgB:
- Ensure:
-
There should not be any permissions/settings from DomainA.com user on DomainB.com user and vice versa.

Step-3: Update Database Records
- Modify the MachPanel Database table:
- Table Name: HB_tblExchangeOrganizationDomains
- Required Changes:
- Update OrganizationID for DomainB.com to associate it with OrgB i.e. 24 in given example.
- Set IsDefaultDomain = True for DomainB.com
- Remove the dummy domain (DomainC.com) entry
Record Before:

Record After:


Ensure database backup is taken before making changes.
Step-4: Update UPN Suffixes in Active Directory
Ensure each organization (OU) has only its valid domain:


Step-5: Perform Backend Synchronization
- OrgA
- Perform Sync from backend for OrgA, check DomainB.com users (Mailbox and AD Users) get removed form OrgA.

Result:

- OrgB
- Perform Sync from backend for OrgB, verify DomainB.com users are part of OrgB Exchange Security Group, AL, GAL, OAB etc.

After: