Thank you for your response.
Yes, I suggest exporting your users using the Management API Create Export users job endpoint and manipulating the exported JSON file to switch their main identities.
When you import the users back into your application, make sure to set the upsert
flag to true to update the existing records.
See Bulk User Exports to learn more.
Here are additional resources you may find useful:
- How to Generate a Bulk Users Export CSV File From the Management API?
- How to Bulk Update User Profile Details in the Management API?
Please let me know if you have any further questions.
Thank you.