# Meaning of numerical user roles in GetUserInfoByUserID(userid)

**URL:** <https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915>\
**Category:** Electron\
**Created:** [February 6, 2020, 3:24pm UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915 "2020-02-06T15:24:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachel/32/1308_2.png) [@rachel](https://devforum.zoom.us/u/rachel)\
**Post date:** [February 6, 2020, 3:24pm UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/1 "2020-02-06T15:24:23Z")

</div>

When calling `GetUserInfoByUserID(userid)` in `zoom_meeting.js` for a joined user during a meeting, user objects are returned with the following format:

```
{
        "userName": "user's display name",
        "email": "example@example.com",
        "isHost": false,
        "userID": 123456,
        "isVideoOn": true,
        "isAudioMuted": true,
        "isMySelf": true,
        "userRole": 32766,
        "isPurePhoneUser": false,
        "WebinarAtendeeStatus": true
 }

```

Is there documentation on what the numerical `userRole` property means? I can’t find any documentation that associates these `userRole` numbers with the actual user roles (and in this particular case, I couldn’t make even an educated guess about the number 32766).

Thank you!

---

<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 7, 2020, 2:07am UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/2 "2020-02-07T02:07:06Z")

</div>

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

Thanks for the post. What is the SDK version you are using? On which platform are you getting this return value? (Mac or Windows)?

Thanks!

---

<div class="post-metadata">

**Author:** ![rachel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachel/32/1308_2.png) [@rachel](https://devforum.zoom.us/u/rachel)\
**Post date:** [February 7, 2020, 2:36am UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/3 "2020-02-07T02:36:29Z")

</div>

Hi @carson.zoom,

I’m using SDK version **4.4.55968.0904** , and getting this return value on **Mac**. Apologies for not including that info in the original post.

Some additional context that may be useful: I collect the user info via `GetUserInfoByUserID` on user join (when `meetinguserjoincb` is triggered). For other users in the meeting, the `userRole` contains values such as 5 or 1. Sometimes (I haven’t nailed down exactly when yet), `meetinguserjoincb` is triggered with a userid not related to any of the participants in the meeting, and will return this (this is just one example):

```
{
    "userName": "",
    "email": "",
    "isHost": false,
    "userID": 6,
    "isVideoOn": true,
    "isAudioMuted": true,
    "isMySelf": true,
    "userRole": 32766,
    "isPurePhoneUser": false,
    "WebinarAtendeeStatus": true
}

```

I was wondering if the `userRole` meant something specific here, so I could differentiate it from the actual meeting participants.

Thank you!

---

<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 8, 2020, 12:18am UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/4 "2020-02-08T00:18:50Z")

</div>

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

Thanks for the reply and the info. Really appreciate it. It is strange that you got a big number for the userRole field as the userRole is defined in here: [https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node\_add\_on/win/h/meeting\_service\_components/meeting\_participants\_ctrl\_interface.h#L15](https://github.com/zoom/zoom-sdk-electron/blob/8adcc6e349d05787c76c2edbe9e214afd072ac8f/lib/node_add_on/win/h/meeting_service_components/meeting_participants_ctrl_interface.h#L15), and the default value should be 0.

Are you able to reproduce this issue with our demo app? Could you provide the steps to reproduce this with our demo app? Thanks!

---

<div class="post-metadata">

**Author:** ![rachel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachel/32/1308_2.png) [@rachel](https://devforum.zoom.us/u/rachel)\
**Post date:** [February 12, 2020, 2:30am UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/5 "2020-02-12T02:30:50Z")

</div>

Hey @carson.zoom,

Thanks for the info on where the userRole is defined. You can reproduce the error with the sample app by first adding the following lines in the function `meetinguserjoincb(useritem)` in `main.js`:

```
for(var i = 0; i < useritem.length; i++) {
    var this_user = useritem[i].userid;
    console.log(zoommeeting.GetUserInfoByUserID(this_user));
}

```

or for the current SDK version:

```
for(var i = 0; i < useritem.length; i++) {
  var this_user = useritem[i].userid;
  console.log(zoomparticipantsctrl.GetUserInfoByUserID(this_user));
}

```

Then,

1. Launch the sample app, triggering the app user information to be logged (after sign-in).
2. Have a user join the meeting outside the app, and then have them leave the meeting (such that the sample app is still running, and you watch them join and leave the meeting).

When the user leaves, the app triggers `meetinguserjoincb` in the fashion I described above (I wasn’t able to reproduce that large number again, that might be something on my end I haven’t nailed down yet?)

Let me know your thoughts, and I’ll update if I can reproduce that number again.

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:** [February 13, 2020, 1:32am UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/6 "2020-02-13T01:32:55Z")

</div>

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

Thank you very much for the detailed reply. I have forwarded this to the engineering team and they are investigating this. We are currently not able to reproduce the large number at the moment, and we will continue looking into this.

Please let us know if you have any new findings. Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:25pm UTC](https://devforum.zoom.us/t/meaning-of-numerical-user-roles-in-getuserinfobyuserid-userid/7915/7 "2020-08-21T19:25:51Z")

</div>

Closed on August 21, 2020, 7:25pm UTC


