# How to get userID with API v2?

**URL:** <https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751>\
**Category:** API and Webhooks\
**Created:** [September 21, 2018, 7:56am UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751 "2018-09-21T07:56:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goss\_Gowtham](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@Goss\_Gowtham](https://devforum.zoom.us/u/Goss_Gowtham)\
**Post date:** [September 21, 2018, 7:56am UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/1 "2018-09-21T07:56:39Z")

</div>

I’ve been surfing through this API userID, where I can’t get any stuff except /getuserbyemail for v1 of REST API.  
But what I need is that, using V2, How do I get the owner’s UserID?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 21, 2018, 9:06pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/2 "2018-09-21T21:06:30Z")

</div>

Hi Goss,&nbsp;

The user id can be found within the response of the GET&nbsp;[https://api.zoom.us/v2/users/{userId}](https://api.zoom.us/v2/users/%7BuserId%7D) API call. Replace {userID} with your email and the ID property that comes back is the userID.&nbsp;

Please refer to&nbsp;[https://devdocs.zoom.us/api-reference/zoom-api/users/user](https://devdocs.zoom.us/api-reference/zoom-api/users/user)

---

<div class="post-metadata">

**Author:** ![Goss\_Gowtham](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@Goss\_Gowtham](https://devforum.zoom.us/u/Goss_Gowtham)\
**Post date:** [September 22, 2018, 2:59pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/3 "2018-09-22T14:59:43Z")

</div>

Yeah, But what if I don’t know user’s email, and not able to retrive Owner’s userID?  
I mean, I’m serious that I can’t be able to extract my user’s Zoom mail ID as my user uses our Company’s mail ID for that app purpose, and different one for Zoom mail!

So, I tried implementing this following way.  
I used this&nbsp;[https://devdocs.zoom.us/api-reference/zoom-api/users/users](https://devdocs.zoom.us/api-reference/zoom-api/users/users)&nbsp;users array[Object], and extracted the 0th index (or First User occurance of the List Users Object) user as the owner, and the subsequent index users as sub accounts.

Can you please ensure that 0th index will (always) be Owner’s userID or the Master userID?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 24, 2018, 4:42pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/4 "2018-09-24T16:42:20Z")

</div>

Hi Goss,&nbsp;

I’ll check back with the Engineers to see if we can make sure the 0th index will be the owners userID.&nbsp;

---

<div class="post-metadata">

**Author:** ![huynq0911](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/huynq0911/32/11142_2.png) [@huynq0911](https://devforum.zoom.us/u/huynq0911)\
**Post date:** [June 29, 2020, 3:02am UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/5 "2020-06-29T03:02:10Z")

</div>

same question with @Goss_Gowtham. How to retrieve the user id?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 29, 2020, 9:38pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/6 "2020-06-29T21:38:23Z")

</div>

Hey @huynq0911,

You can easily get the userID by calling the [List Users API,](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users) or for User Level OAuth apps, use the `me` keryword:

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#using-access-token)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![huynq0911](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/huynq0911/32/11142_2.png) [@huynq0911](https://devforum.zoom.us/u/huynq0911)\
**Post date:** [June 30, 2020, 1:36am UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/7 "2020-06-30T01:36:06Z")

</div>

Hi Tommy,  
Although the answer is not my expectation, I found the way to get userid:  
Request `https://api.zoom.us/v2/users/{my_email}` with bearer param which gets from the JWT Token in App Marketplace ([developer.zoom.us](http://developer.zoom.us) API)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 30, 2020, 10:23pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/8 "2020-06-30T22:23:25Z")

</div>

Hey @huynq0911,

Correct! That is another way to do it! 🙂 You can pass the Zoom users email instead of the userId to the [Get User endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user).

Thanks,  
Tommy

---

<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, 10:31pm UTC](https://devforum.zoom.us/t/how-to-get-userid-with-api-v2/1751/9 "2020-08-21T22:31:25Z")

</div>

Closed on August 21, 2020, 10:31pm UTC


