Knowledge Base: Can a dedicated server invite a player to a lobby instead of the host?

Only members of a lobby can send an invite, see EOS_Lobby_SendInvite.

https://dev.epicgames.com/community/learning/knowledge-base/Re1YG/epic-online-services-can-a-dedicated-server-invite-a-player-to-a-lobby-instead-of-the-host