Okta react js to update tenant based on user profile

Hi Team,

I am using react js to work with Okta. I have a requirement, where user object needs to be updated in different tenants. Let’s say if user type is ‘A’ then update the user object in tenant-1. If user type is ‘B’ , update user object in tenant-2.

Please provide some thoughts on this.