Minecraft wiki entry for team, associated text: Specifies the entities to join or leave the team.
Must be a selection of score holders. It may be either a target selector, a player name, a UUID, or * for all score holders tracked by the scoreboard. Named player needn't be online, and it even needn't be a real player's name.