API for Party / Squad members enumeration and handling?

The scenario is the following:

Imagine a game with two major factions (aka teams) battling it out. Each team is in turn made up of N squads each with a handful of players. The scoreboard only shows the two main factions, but the squads are part of the core gameplay. Although it could be possible to form/join squads inside the game itself, the most natural way of handling it IMO is to create a party before joining the game (i.e. the same way people know and recognize from playing BR).

So the first question basically boils down to this: is there’s any way to identify which players matched into a game as a party so I can automatically put them into a squad of their own and run game rules accordingly?

As a fallback I’ve been thinking that perhaps I could have a game with N*2 teams and just by logic split these team-as-squad into the two opposing forces, but this seems to have some potential problems with a lot of builtin creative devices really only knowing how to deal with a single team, or everything except a single team. Or I could not formally use any teams at all and just handle squads as logic, but then there are some other questions like how to correctly configure voice chat for the squad e.g.

Hello! Currently there is no way of knowing if players are in a party when they join a game.

Perhaps you could let players choose which squad they want to be in when they join using the Class Selector?

Or there is the fort_team_collection which allows you to create teams and assign players to them as well as set the team_attitude towards other teams.

How would I set team_attitude? fort_team_collection only seems to have getters for attitude, not setters. Is there some extension method somewhere that I haven’t found?

Anyone else know how to set team attitudes?