How to tackle issues related to migrating and switching users