# GetUserByUserID returns NULL for UserID provided by lstUserID parameter of onUserJoin callback

**URL:** <https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317>\
**Category:** Windows\
**Created:** [February 28, 2020, 10:03am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317 "2020-02-28T10:03:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [February 28, 2020, 10:03am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/1 "2020-02-28T10:03:08Z")

</div>

**Description**  
In “onUserJoin” callback, we are using the passed “lstUserID” param to get the list of UserIDs of users who have joined and use those UserIDs to fetch individual user details by calling GetUserByUserID of ParticipantController for each UserID. However, sometimes, intermittently, for one of the UserID the function GetUserByUserID returns NULL when calling the function from inside “onUserJoin” to fetch individual user details.

**Which version?**  
v4.4.56616.1028

**To Reproduce(If applicable)**  
Occurs Intermittently. I faced it once when I was admitting users from Waiting Room one by one.

**Additional context**  
The Code we are using  
`void ZoomController::onUserJoin(IList<unsigned int >* lstUserID, const wchar_t* strUserList) { int count = lstUserID->GetCount(); int userId; Json::Value userArrayJson; Json::Value participants; userArrayJson = Json::arrayValue; participants = Json::arrayValue; for (int i = 0; i < count; ++i) { userId = lstUserID->GetItem(i); IMeetingParticipantsController *participantsController = meetingService->GetMeetingParticipantsController(); IUserInfo* user = participantsController->GetUserByUserID(userId); if (user) { userArrayJson.append(convertToJson(user)); participants.append(convertToJsonV2(user)); Json::Value logJson; logJson["userJoin"]["id"] = userId; logJson["userJoin"]["email"] = userArrayJson[i]["email"]; logJson["userJoin"]["name"] = userArrayJson[i]["name"]; LOG_INFO(TAG) << Utility::jsonToString(logJson); } else { LOG_WARNING(TAG) << "Participant join user id: " << userId << " does not exist"; } } }`  
Sent the SDK logs of a meeting where we faced this issue to @carson.zoom through personal message

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 29, 2020, 2:11am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/2 "2020-02-29T02:11:05Z")

</div>

Hi [Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma),

Thanks for the post and the log. I have forwarded this to the engineering team for investigation, will get back to you asap.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [March 12, 2020, 11:39am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/3 "2020-03-12T11:39:00Z")

</div>

Hi @carson.zoom, is there any response from engineering team, as our production system is being affected by this issue ?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 13, 2020, 3:54am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/4 "2020-03-13T03:54:48Z")

</div>

Hi [Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma),

Thanks for the reply and thanks again for the log files. We are able to identify an issue with this interface and we will fix it in the next release, which will be out very soon. Pardon the inconvenience caused by this.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [April 13, 2020, 6:08am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/5 "2020-04-13T06:08:35Z")

</div>

Has the issue been fixed in the latest release [v4.6.15798.0403](https://github.com/zoom/zoom-sdk-windows/releases/tag/v4.6.15798.0403) ?

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 14, 2020, 5:20am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/6 "2020-04-14T05:20:21Z")

</div>

Hi [Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma),

Thanks for the reply. Yes, this issue has been addressed in this release. Please have a try.

Thanks!

---

<div class="post-metadata">

**Author:** ![mues](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mues](https://devforum.zoom.us/u/mues)\
**Post date:** [April 24, 2020, 11:19am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/7 "2020-04-24T11:19:56Z")

</div>

I am using that exact version and I am getting NULLs returned  
on all interface methods that I attempt to call.  
please help anybody?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 25, 2020, 12:11am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/8 "2020-04-25T00:11:05Z")

</div>

Hi [mues](https://devforum.zoom.us/u/mues),

Thansk for the reply. Are you using [v4.6.15798.0403](https://github.com/zoom/zoom-sdk-windows/releases/tag/v4.6.15798.0403)? Could you name some of the interfaces that you are getting NULL with? Could you provide the SDK log so that we could further investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [June 4, 2020, 6:44am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/9 "2020-06-04T06:44:19Z")

</div>

Hi @carson.zoom,

I seem to be again getting the same issue of IUserInfo being returned NULL by IMeetingParticipantsController::GetUserByUserID when being called for userID (say xyz) received in plstActiveAudio parameter of IMeetingAudioCtrlEvent::onUserActiveAudioChange callback.  
Also, IMeetingParticipantsCtrlEvent::onUserJoin callback was not received for the same xyz userID, but IMeetingAudioCtrlEvent::onUserActiveAudioChange callback was received.  
Sending the SDK logs to you separately through personal message.

Thanks !

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [June 4, 2020, 7:05am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/10 "2020-06-04T07:05:31Z")

</div>

@carson.zoom I’ve shared the SDK logs over the email with you as I was unable to find the option to send personal message

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 4, 2020, 7:22am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/11 "2020-06-04T07:22:39Z")

</div>

Hi @Rishi_Sharma,

Thank you very much and I have received the log. I will pass them to the engineering team for further investigation. Will get back to you as soon as I heard back from the team.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [June 23, 2020, 4:50am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/12 "2020-06-23T04:50:16Z")

</div>

Hi Carson,

Has there been any reply from engineering team ?

Thank You,  
Rishi Sharma

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 24, 2020, 7:18am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/13 "2020-06-24T07:18:26Z")

</div>

Hi @Rishi_Sharma,

Thanks for the follow-up. The engineering team would need some additional help from you if possible:

When the `IMeetingParticipantsController::GetUserByUserID` returns NULL, could you help to record the userID that is being used? It would also be helpful if you could record the time when you receive the callback.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [June 24, 2020, 10:24am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/14 "2020-06-24T10:24:22Z")

</div>

Hi @carson.zoom,

The UserId for which it returned NULL was 16785408.  
These are the UTC timestamps when the `GetUserByUserID` returned NULL for above-mentioned userId:  
`2020-06-03 19:00:52.292337`  
`2020-06-03 19:00:52.291847`

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 27, 2020, 1:29am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/15 "2020-06-27T01:29:25Z")

</div>

Thanks @Rishi_Sharma. Are these userIDs from the meeting in the log? Or another meeting?

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [June 27, 2020, 1:42am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/16 "2020-06-27T01:42:39Z")

</div>

@carson.zoom Yes, these userIDs are from the meeting in the log provided

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 27, 2020, 1:48am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/17 "2020-06-27T01:48:17Z")

</div>

Thank you! I will forwarded this to the engineering team for investigation. Will get back to you shortly.

---

<div class="post-metadata">

**Author:** ![Rishi\_Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rishi_sharma/32/2278_2.png) [@Rishi\_Sharma](https://devforum.zoom.us/u/Rishi_Sharma)\
**Post date:** [July 17, 2020, 4:51am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/18 "2020-07-17T04:51:49Z")

</div>

Hi @carson.zoom, has there been any update from engineering team ?

---

<div class="post-metadata">

**Author:** ![Sneh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sneh/32/16841_2.png) [@Sneh](https://devforum.zoom.us/u/Sneh)\
**Post date:** [December 30, 2021, 5:30am UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/19 "2021-12-30T05:30:17Z")

</div>

Hi @carson.zoom, is there any update on this issue?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 30, 2021, 8:28pm UTC](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317/20 "2021-12-30T20:28:33Z")

</div>

Hi @Sneh,

Can you please confirm whether or not you are able to reproduce this on the latest version of the SDK?

Thanks!

[Next page](https://devforum.zoom.us/t/getuserbyuserid-returns-null-for-userid-provided-by-lstuserid-parameter-of-onuserjoin-callback/8317.md?page=2)
