UGameplayStatics::GetPlayerStateFromUniqueNetId

Returns the player state that matches the passed in online id, or null for an invalid one.