Is it possible to search for players by name?

Hello,

Is there a way we can allow the user to search for other players by typing in their Epic Account display name using the EOS SDK? Similar to how you can search for players to add them as friends using the Social Overlay

Thanks,

James

Yes, you can use the EOS_UserInfo_QueryUserInfoByDisplayName API to map a display name to its account identifier (Epic Account ID).

https://dev.epicgames.com/docs/epic-account-services/eos-user-info-interface\#retrieving-user-info-by-display-name

You can then use this Epic Account ID with the EOS_Connect_QueryExternalAccountMappings API to get the EOS Product User ID, if you need this for lobby or session searches.

https://dev.epicgames.com/docs/game-services/connect/connect-reference\#retrieve-product-user-id-mappings

https://dev.epicgames.com/docs/game-services/lobbies-and-sessions/sessions/search-for-a-session\#configure-for-user-id

https://dev.epicgames.com/docs/game-services/lobbies-and-sessions/lobbies/search-for-a-lobby\#search-by-user-id

Ah perfect. I must have missed this when browsing the docs!

Thanks!