How to save data and use it to initialize Player States after RestartGame?

I have a game mode where there are two teams, characters having the Player State of course. When a round ends, there is a call to RestartGame(), however this completely messes up who was in which team.

I’m trying to save some data in my Game Instance class however I cannot find any unique ID’s or identifiers from which to look in the array after the game was reset (in the Begin Play of the Player State). Saving the data is done in an array of custom structs where I want to store all data, the missing piece being how do I identify which player state was who as when the game restarts they are created from scratch?

Is there a way I can get some unique ID for the current session of the Player to use for this? I am familiar with OnlineSubsystem but haven’t used it much so don’t know what to look after. Should I use some kind of IPs or something else? And is this even possible to test with multiple viewports in UE?