User model updated to include their applications and foreignIds used in those applicattions