Yellow marks on the map in SW Battlefront II
Solution 1:
Blue dots on the minimap are your teammates, either real or AI. Yellow dots on the minimap are your current Squadmates. In the lower left corner of your HUD, your Squad is listed with you and up to 3 teammates. Similarly, Squadmates can also show up green if they are your friend on Origin/console of choice.