# Jwt Token Acces Question

**URL:** <https://devforum.zoom.us/t/jwt-token-acces-question/44303>\
**Category:** API and Webhooks\
**Created:** [February 25, 2021, 9:13pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303 "2021-02-25T21:13:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristiand](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cristiand](https://devforum.zoom.us/u/cristiand)\
**Post date:** [February 25, 2021, 9:13pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/1 "2021-02-25T21:13:30Z")

</div>

I created an app and generated the Jwt Token. I am an admin under our zoom account and I am able to manage users. I am writing api calls using ruby. I am able to get a list of users on the account and using the users Id I am trying to get a list of all recordings using /users/{userId}/recordings. However I do not get a list of all the recordings.

I only get something like this most of the time:  
{  
“from”: “2021-02-24”,  
“to”: “2021-02-25”,  
“page\_count”: 0,  
“page\_size”: 0,  
“total\_records”: 0,  
“next\_page\_token”: “”,  
“meetings”: [

]  
}

Some recordings show up for some of the users but not all of them. I am admin on the account and I am wondering if the Jwt token generated does not have full access to all the users? What else am I doing wrong?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 25, 2021, 11:35pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/2 "2021-02-25T23:35:01Z")

</div>

Hey @cristiand,

Thank you for reaching out to the Zoom Developer Forum. Please provide the user ID of a user that is encountering this issue and I’ll investigate the matter further with that.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![cristiand](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cristiand](https://devforum.zoom.us/u/cristiand)\
**Post date:** [February 25, 2021, 11:44pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/3 "2021-02-25T23:44:32Z")

</div>

User id is:  
It is my own user id and I see recordings in my account when I click on Personal-\>Recordings. For the response I get this:  
{  
“from”: “2021-02-24”,  
“to”: “2021-02-25”,  
“page\_count”: 0,  
“page\_size”: 0,  
“total\_records”: 0,  
“next\_page\_token”: “”,  
“meetings”: [

]  
}

---

<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:** [March 1, 2021, 7:38pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/4 "2021-03-01T19:38:39Z")

</div>

Hey @cristiand ,

Can you please share your request url, including the query params you are using?

We also need steps to reproduce the issue so we can investigate further. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![cristiand](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cristiand](https://devforum.zoom.us/u/cristiand)\
**Post date:** [March 1, 2021, 8:02pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/5 "2021-03-01T20:02:39Z")

</div>

Thanks for responding. I used to get the recordings of some users. Now I do not get anything. This is the ruby script I am using for one user:

require ‘uri’

require ‘net/http’

require ‘openssl’

url = URI(“[https://api.zoom.us/v2/users/ujtkpICUSTuP-GAYNIvSPA/recordings](https://api.zoom.us/v2/users/ujtkpICUSTuP-GAYNIvSPA/recordings?trash_type=meeting_recordings&mc=false&page_size=30)”)

http = Net::HTTP.new(url.host, url.port)

http.use\_ssl = true

http.verify\_mode = OpenSSL::SSL::VERIFY\_NONE

request = Net::HTTP::Get.new(url)

request[“authorization”] = ‘Bearer **token** ’

response = http.request(request)

puts response.read\_body

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 1, 2021, 11:20pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/6 "2021-03-01T23:20:17Z")

</div>

Hey @cristiand,

Thank you for the update. When using the [List All Recordings API](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist), please make sure that you are setting the `from` and `to` fields otherwise, the default date range will start on the current date:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/d/cd1e7485efbef462b03d5ed4eda39393c032b5d7.png)

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![cristiand](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@cristiand](https://devforum.zoom.us/u/cristiand)\
**Post date:** [March 2, 2021, 6:13pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/7 "2021-03-02T18:13:40Z")

</div>

That helped thanks. .

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 2, 2021, 10:33pm UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/8 "2021-03-02T22:33:40Z")

</div>

Hey @cristiand,

I’m glad to hear that resolved your issue! Please don’t hesitate to reach out if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 2, 2021, 8:34am UTC](https://devforum.zoom.us/t/jwt-token-acces-question/44303/9 "2021-04-02T08:34:16Z")

</div>

Closed on April 2, 2021, 8:34am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
