cancel
Showing results for 
Search instead for 
Did you mean: 

GroupPresence.SetInvitationsSentNotificationCallback gives invalid UserId for invitees

MattK_GPG
Honored Guest

I'm implementing friend invites in unity and using accelbyte for our project. Accelbyte requires us to use the OrgScopedId to get the Accelbyte UserId to send invites. We prompt the user to send an invite to a friend using GroupPresence.LaunchInvitePanel and intended to leverage GroupPresence.SetInvitationsSentNotificationCallback which gives us a list of users. We attempted to get the userIds from these users and call CAPI.ovr_User_GetOrgScopedID but we get the following error:

Failed to get OrgScopedId: {"error":{"message":"Unsupported get request. Object with ID '114185858376196' does not exist, cannot be loaded due to missing permissions, or does not support this operation","type":"OCApiException","code":100,"error_subcode":33,"fbtrace_id":"A0WsUMez5ejVMXxfzuxu4RE"}

We used curl to test the userId and got the same error. We noticed the userId is different for a user when it is retrieved from the Message<LaunchIvitePanelFlowResult> as compared to when use GetLoggedInUser locally. The UserId returned from the GetLoggedInUser function works when testing with the curl, so I know the issue is that the userId from the invite notification is invalid.

Why is the userId different when retrieved from GroupPresence.SetInvitationsSentNotificationCallback parameter and how can I get the correct userId so I can get the invited user's OrgScopedID?

0 REPLIES 0