Jwt Token Acces Question

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?

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

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”: [

]
}

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. :slight_smile:

Thanks,
Tommy

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”)

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

Hey @cristiand,

Thank you for the update. When using the List All Recordings API, please make sure that you are setting the from and to fields otherwise, the default date range will start on the current date:

Let me know if that helps.

Thanks,
Max

That helped thanks. .

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

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