Closed pmbanugo closed 7 years ago
well, i'd use the APIs to create a new account. the main issue is if there's already a user with the same username/email.
yes there is a user with that name. it is just moving the user from one tenant to another. From what you're saying, I the solution should be: Delete and recreate the the user account to a different tenant?
if there's already a user with the same name, do you know if it's the same person or a different person? is it safe to delete it?
it's the same person. there are no users with the same name in the different tenants. It's just moving them to a diff tenant, basically, trying to change the tenant value in the db.
I think it will be a tricky one as I need to know the users password. I don't want to pop-out a screen asking for password. I just want to silently move the user to a different tenant. What I can think of right now as a solution to my problem is just a simple query called in code that updates the value of the tenant column
Ah right... well, you could just change the tenant column in the DB, but like I said, you need to make sure there is no other username/email.
How do I update a user account from one tenant to another? i.e move it from say tenant default to 'masters'