# Unable to query a user in via the API

**URL:** <https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912>\
**Category:** API and Webhooks\
**Created:** [July 1, 2020, 3:45pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912 "2020-07-01T15:45:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjetha](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@vjetha](https://devforum.zoom.us/u/vjetha)\
**Post date:** [July 1, 2020, 3:45pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912/1 "2020-07-01T15:45:08Z")

</div>

**Description**  
We are using the API to look-up user in our integration. As per the client the specific user is present in the account but the API returns no records found.

**Error**  
API returns no records found.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Authorization: JWT using API key/secret.

**Which Endpoint/s?**  
Endpoint: GET/users/{userId}

**How To Reproduce (If applicable)**  
Not sure if it can be replicated.

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
I read the user role and could there be any restrictions lets say if i generated the API key/Secret using user A who might not have access to user B. Or could there be any other aspect that we might be missing coz which we are unable to query the user.

Thanks,  
Vivin

---

<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 6, 2020, 7:17pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912/2 "2020-07-06T19:17:05Z")

</div>

Hey @vjetha,

Is the user you are trying to get, a [user in your Zoom account](https://zoom.us/account/user#/)?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vjetha](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@vjetha](https://devforum.zoom.us/u/vjetha)\
**Post date:** [July 7, 2020, 1:35pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912/3 "2020-07-07T13:35:15Z")

</div>

@tommy yes the client confirmed that the user is present in their Zoom account.

Has it got anything to do with subaccounts in any way, I am not sure how that works (just thinking out loud).

Thanks,  
Vivin

---

<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 9, 2020, 9:10pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912/4 "2020-07-09T21:10:48Z")

</div>

Hey @vjetha,

If the user is in your Zoom account, and you are using JWT it should work.

Can you share the userId you are trying to use in the Get User request so I can investigate further?

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:38pm UTC](https://devforum.zoom.us/t/unable-to-query-a-user-in-via-the-api/22912/5 "2020-08-21T22:38:28Z")

</div>

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


