Players can sign into their Epic Games account (here) using their platform account. On the account settings page they can see their ID.
https://dev.epicgames.com/community/learning/knowledge-base/VLmrR/epic-online-services-anyway-to-get-the-account-id-of-a-headless-account