Change primary user during post-login action results in Unauthorized

Hi @cristiano.piemontese,

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:

Please let me know if you have any further questions.

Thank you.

1 Like