Search

MachPanel Knowledgebase

HOW TO:Tenant Consolidation - Merging Two MachPanel Organizations/Domains Into One

Zohaib Shaikh
MachPanel

Summary

This article outlines the procedure merge / consolidate two separate customer organizations and their respective mail domains into a single target tenant structure within MachPanel. This approach applies when an enterprise absorbs or merges with another, combining their directory assets, mailboxes, and accepted domains under a single unified billing and subscription profile.

To merge two organizations and their associated subscriptions within MachPanel, you will need to perform a migration sequence that reassigns the domains, subscriptions, and users from the source organization to the destination organization. Because MachPanel treats each customer organization as a distinct security and billing boundary, the system does not have a single "merge" button. Instead, the process must be completed using built-in account management and subscription tools.

Here is the strategic framework and operational plan to execute the merger successfully.

Applies To

This article applies to MachPanel build v8.2.50 and above

Existing Setup:

  • Customer-A > OrgA > Domains: > DomainA.com
  • Customer-B > OrgB > Domains: > DomainB.com

Required Target Setup

  • Existing Customer (Customer-B) > OrgA
      • Domain: DomainA.com and DomainB.com
      • Mailboxes: All users belonging to both DomainA.com and DomainB.com 
Pre-Requisites
  • Database Backup: Always back up the MachPanel_Db database via SQL Server Management Studio (SSMS) before executing structural updates directly in tables.

  • Security Group Exception: When remapping backend assets, do not move the system-generated Exchange Security Groups (SGs) belonging to the source organization.

Phase 1: Active Directory & Exchange Server Re-alignment (Back-end AD / Exchange)

Perform these operations directly within your Active Directory Domain Services (AD DS) and Exchange Server environment.

Step 1: Relocate Organizational Objects

1. Open Active Directory Users and Computers (ADUC) on your domain controller.
2. Navigate to the Organizational Unit (OU) of the Source Organization.
3. Select and move all Active Directory Users, Custom Distribution Groups / Security Groups, and Contacts into the target OU path of the Destination (Target) Organization.
    • Critical Exclusion: Leave the Primary Exchange Server provisioning Security Group (SG-OldOrg) behind in the source OU.

​

​

Step 2: Update the UPNSuffices / User Principal Name (UPN) Suffixes:

Check and copy the uPNSuffixes from properties of Source-OU and copy them over to Target-OU.

In this case, copy from "domainb.com" to "domaina.com".

Phase 2: MachPanel Control Panel and Database Updates 

Because MachPanel maps domain assets to explicit tenant records via a database mapping structure, backend pointer shifts are required.

Step 3: Add Source-Tenant Domain Name as Domain Alias under the Target-Tenant in MachPanel 

1. Access your MachPanel Database Instance using SQL Server Management Studio (SSMS) being logged in as MachPanel_Db user.
2. Open a new query window against the MachPanel database.
3. Locate the HB_tblExchangeOrganizationDomains table entry to alter the binding configuration from the source tenant ID to the target tenant ID.
4. Execute an explicit update statement targeting the domains being merged:

SELECT     *     FROM        HB_tblExchangeOrganizationDomains
WHERE     (DomainName LIKE '%domaina%') OR  (DomainName LIKE '%domainb%') 

​

UPDATE HB_tblExchangeOrganizationDomains 
SET OrganizationId = @TargetOrgId 
WHERE OrganizationId = @OldOrgId AND DomainName IN ('domain1.com', 'domain2.com', 'domainx.com');

Note: You also have to mark the other domain 'domainb.com' as Not Primary, because there can be only one domain that should be primary and since the both domains are from different organization/subscriptions so both will be set as Primary in MachPanel database, so you have to make other domain as Not Primary using below query.

Update  HB_tblExchangeOrganizationDomains Set IsDefaultDomain='0' where DomainName = 'domainb.com'

Verify that the record handles align correctly to avoid impacting independent multi-tenant profiles.

Phase 3: Directory Clean-Up & Panel Re-calibration Flow 

Step 4: Update Database Records using Sync from Backend Operation:

1. Log into the MachPanel Provider Control Center (PCC).
2. Navigate to Service Director > Exchange Hosting > Organizations.
3. Select the New (Target) Organization profile.
4. Trigger a Sync from Backend action.
5. Because the users, groups, and contacts were migrated out of the Source-OU to the Target-OU in Step 1, this sync operation safely adds the new objects (Mailboxes, Active Directory users, etc.) to the panel under target tenant.

  • OrgA
    • Perform Sync from backend for OrgA, check DomainB.com users (Mailbox and AD Users) get removed form OrgA.

 

Step 5: Clear the Source Subscription

1. Access your MachPanel Database Instance using SQL Server Management Studio (SSMS) being logged in as MachPanel_Db user.
2. Open a new query window against the MachPanel database.
3. Locate the HB_tblExchangeHosting table entry to clear subscription from panel.
4. Execute an explicit update statement targeting the domains being merged:

SELECT    *
FROM        HB_tblExchangeHosting
WHERE     (ExchHostingID = @SourceExchangeHostingID)

After ensuring the resulting record is correct, execute below (be careful when executing this):

Delete
FROM        HB_tblExchangeHosting
WHERE     (ExchHostingID = @SourceExchangeHostingID)

 

This will result in having only one Hosting Record in panel for the target Organization/Domain only.

 

 

Details
Type: HOW TO
Level: Aadvanced
Last Modified: Last Month
Last Modified By: rehan_waseem
Article not rated yet.
Article has been viewed 245 times.
Options
Also In This Category
Tags