Automatically assign portfolio