We don’t have an self-serve method for you to merge users within Heap. We can work with you to perform this mapping exercise manually via our backend, provided that you are able to indicate which users should be merged and into which Identity.
This requires a significant effort from our end, so this would fall under a paid professional services engagement. If this is something you want to pursue, please contact your CSM or contact Support via the Get support page.