# Need user ID along with zoom code

**URL:** <https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320>\
**Category:** API and Webhooks\
**Created:** [October 18, 2019, 7:37pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320 "2019-10-18T19:37:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivanesan.murugesan](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sivanesan.murugesan](https://devforum.zoom.us/u/sivanesan.murugesan)\
**Post date:** [October 18, 2019, 7:37pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/1 "2019-10-18T19:37:04Z")

</div>

Hi,  
When Zoom sends back the authorization code to the caller(redirect\_uri), can it send the user data who have authorized the app? At present, it just sends the code(UUID) and there is no user information(just user ID) to correlate(or validate) to our application user session.  
Thanks,  
smsivanesan

---

<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:** [October 18, 2019, 8:01pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/2 "2019-10-18T20:01:32Z")

</div>

Hey @sivanesan.murugesan, great question and thanks for using Zoom!

Once you receive the code, use it to [request an access\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token).

Once you have the `access_token`, [JWT decode](https://jwt.io) it to get information like the userID.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sivanesan.murugesan](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sivanesan.murugesan](https://devforum.zoom.us/u/sivanesan.murugesan)\
**Post date:** [October 21, 2019, 6:37pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/3 "2019-10-21T18:37:40Z")

</div>

Thanks Tommy for your response. Yes. I did decoded as you suggested. But it is showing me like a “UUID” value rather a user login ID or user’s email. Am I missing anything here?

---

<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:** [October 21, 2019, 9:17pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/4 "2019-10-21T21:17:42Z")

</div>

Hey @sivanesan.murugesan, happy to help! 🙂

When you JWT Decode an access token, It should look like this:

 ![35%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a2b1ebaa98c4f94df45e0c905bcd0ca7d633312b.png)

Notice on the left the userID

Let me know if this helps.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sivanesan.murugesan](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sivanesan.murugesan](https://devforum.zoom.us/u/sivanesan.murugesan)\
**Post date:** [October 22, 2019, 6:50pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/5 "2019-10-22T18:50:36Z")

</div>

Hi Tommy, Yes. I saw it. But my question was. it shows like a UUID and not as an actual user login ID or email. We wanted to map it to our application user session.

---

<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:** [October 22, 2019, 6:54pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/6 "2019-10-22T18:54:15Z")

</div>

Hey @sivanesan.murugesan I see!

You can use the `userId` in the JWT decoded object to make a request to [GET /users/{userId}](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) which has the email in the response.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sivanesan.murugesan](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sivanesan.murugesan](https://devforum.zoom.us/u/sivanesan.murugesan)\
**Post date:** [October 22, 2019, 8:30pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/7 "2019-10-22T20:30:57Z")

</div>

Hi Tommy, Great. Thanks. This helps.

---

<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:** [October 22, 2019, 10:01pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/8 "2019-10-22T22:01:25Z")

</div>

You are welcome! 🙂

Thanks,  
Tommy

---

<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:** [July 29, 2020, 9:22pm UTC](https://devforum.zoom.us/t/need-user-id-along-with-zoom-code/6320/9 "2020-07-29T21:22:55Z")

</div>

UPDATE:

Zoom **does not recommend** getting information from the access token by JWT Decoding it because the structure could change anytime. Do not rely on JWT Decoding the access token.

Use the [Get User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) with the [me context](https://marketplace.zoom.us/docs/guides/auth/oauth#using-access-token) to get information about the owner of the access token.

Thanks,  
Tommy
