# Looking up Oculus userId via EOS\_ProductUserId to map lobby invite back to Oculus user, is returning Quest userId despite logged in via Rift (PC VR), 

**URL:** <https://forums.unrealengine.com/t/looking-up-oculus-userid-via-eos-productuserid-to-map-lobby-invite-back-to-oculus-user-is-returning-quest-userid-despite-logged-in-via-rift-pc-vr/2858227>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [February 17, 2025, 2:43pm UTC](https://forums.unrealengine.com/t/looking-up-oculus-userid-via-eos-productuserid-to-map-lobby-invite-back-to-oculus-user-is-returning-quest-userid-despite-logged-in-via-rift-pc-vr/2858227 "2025-02-17T14:43:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 17, 2025, 2:43pm UTC](https://forums.unrealengine.com/t/looking-up-oculus-userid-via-eos-productuserid-to-map-lobby-invite-back-to-oculus-user-is-returning-quest-userid-despite-logged-in-via-rift-pc-vr/2858227/1 "2025-02-17T14:43:55Z")

</div>

I’m making a game for Meta Quest but I have a development Rift build for ease of testing / debugging. I log into EOS with the Oculus UserId using EOS\_Connect\_Login with the EOS\_ECT\_OCULUS\_USERID\_NONCE. Setting up a lobby works fine, and in the process of handling invites. When the invite is received I’m using EOS\_Connect\_QueryProductUserIdMappings to lookup the Oculus UserId from the EOS user who sent the invite. In the callback on EOS\_Success I call EOS\_Connect\_GetProductUserIdMapping to get the Oculus UserId but it is returning the UserId for the Quest but I’m running the RIft build (Same Meta account two different userId, helpful huh!).

On the EOS Dashboard, I’ve got one client with two identity providers, one for Quest that uses the App ID and Secret from the Quest Dev portal and one for Rift that uses the App ID and Secret from the Rift portal. There doesn’t seem to be anywhere to supply these when initializing EOS just the Ids for Product, Clients, Sandboxes and Deployments etc. I do initialize the OVR PlatformSDK with the correct App ID though. I haven’t created EOS Applications to get an Application ID, which is required for Epic Application Services, but I believe that is only needed if you want cross platform play which I don’t need at least at this time. This seems to be correct but I could be missing something,

Is it possible to obtain other oculus linked accounts or specify which one you want? I have a work around but it would be useful to be able to do it via EOS in the future.

---

<div class="post-metadata">

**Author:** ![itho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/itho/32/1130265_2.png) [@itho](https://forums.unrealengine.com/u/itho)\
**Post date:** [March 19, 2025, 12:21pm UTC](https://forums.unrealengine.com/t/looking-up-oculus-userid-via-eos-productuserid-to-map-lobby-invite-back-to-oculus-user-is-returning-quest-userid-despite-logged-in-via-rift-pc-vr/2858227/2 "2025-03-19T12:21:33Z")

</div>

We do not have a way to specify the returned accounts from this API call. Could you please share the Product User ID of your test account for me to investigate?

Unfortunately, we cannot easily differentiate between Rift and Quest because the Oculus token doesn’t contain this environment information.

During authentication, our systems will attempt to validate the token with each of the configured Oculus credentials the sandbox is mapped to (e.g., Rift & Quest).
