Added handling for when switching accounts to update the cached group id's