Description
The ‘/report/users’ API is returning the same results for me regardless of whether i specify ‘active’ or ‘inactive’ for the status query parameter for a given timeframe. The same number of objects is returned and the email addresses in each result set are the same.
Error
No error message, but incorrect results
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Powershell using JWT authentication
Which Endpoint/s?
https://api.zoom.us/v2/report/users
How To Reproduce (If applicable)
Steps to reproduce the behavior:
Initialize request as below:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add('content-type' , 'application/json')
$headers.Add('authorization', '') # Token will be generated before each query
$baseUri = 'https://api.zoom.us/v2'
$usersUri = $baseUri + '/report/users'
$request = [System.UriBuilder]$usersUri
$query = [System.Web.HttpUtility]::ParseQueryString([String]::Empty)
$query.Add('status', 'active')
$query.Add('page_size', 300)
$query.Add('page_number', 1)
$query.Add('from', '')
$query.Add('to', '')
$start = 3
$end = 2
See verbose output of query requests for URIs used and results returned (i’ve truncated the results but they’re all the same except the page number)
VERBOSE: GET https://api.zoom.us/v2/report/users?status=active&page_size=300&page_number=1&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 1 of 16, 4642 results
VERBOSE: GET https://api.zoom.us/v2/report/users?status=active&page_size=300&page_number=2&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 2 of 16, 4642 results
...
VERBOSE: GET https://api.zoom.us/v2/report/users?status=active&page_size=300&page_number=16&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 16 of 16, 4642 results
[13:46:34]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> $active = $statsForRange.email
[13:46:50]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> $active.count
Update the query as shown and rerun, results are the same and compare-object between the two results shows no difference.
[13:41:12]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> $query['status'] = 'inactive'
and execute again with the results shown (note the query is correctly showing status=inactive this time)
Pulling Idle Stats from '2020-10-19' to '2020-10-20''
VERBOSE: GET https://api.zoom.us/v2/report/users?status=inactive&page_size=300&page_number=1&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 1 of 16, 4642 results
VERBOSE: GET https://api.zoom.us/v2/report/users?status=inactive&page_size=300&page_number=2&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 2 of 16, 4642 results
...
VERBOSE: GET https://api.zoom.us/v2/report/users?status=inactive&page_size=300&page_number=16&from=2020-10-19&to=2020-10-20 with 0-byte payload
VERBOSE: received -1-byte response of content type application/json;charset=UTF-8
VERBOSE: Pulled page 16 of 16, 4642 results
[13:48:07]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> $inactive = $statsForRange.email
[13:48:20]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> $inactive.count
4642
[13:48:23]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers> Compare-object $active $inactive
<< Note that compare-object will return differences between the two lists, so no results means the objects are the same >>
[13:48:27]:C:\Scripts\PowerShell\zoom\Scripts\Manage-DisabledUsers>
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.