Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Unauthorized #13

Closed
thebrickerbackribs opened this issue Jun 15, 2020 · 1 comment
Closed

401 Unauthorized #13

thebrickerbackribs opened this issue Jun 15, 2020 · 1 comment

Comments

@thebrickerbackribs
Copy link

I am running a query to pull all users and am getting a 401 unauthorized. I am an admin in Zoom (not the owner). I just pulled the secret and key from Zoom admin console under personal/settings. We have over 800 users and I have tried

#In Powershell it’s explicitly written as a string for the key and secret
$apiKey = ‘’
$apiSecret = '’

Get-ZoomUsers -AllPages -ApiKey $apiKey -ApiSecret $apiSecret
Get-ZoomUsers : The remote server returned an error: (401) Unauthorized.
At line:1 char:1

Get-ZoomUsers -AllPages -ApiKey $apiKey -ApiSecret $apiSecret

  • CategoryInfo : InvalidOperation: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ZoomUsers

Get-ZoomUsers : The remote server returned an error: (401) Unauthorized.
At C:\Program Files\WindowsPowerShell\Modules\pszoom\1.1.8\Public\Users\Get-ZoomUsers.ps1:181 char:27

… ageCount = (Get-ZoomUsers -PageSize 300 @params -FullApiResponse).pag …
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (:slight_smile: [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ZoomUsers
Separate Instance

Get-ZoomUsers -PageNumber 1 -ApiKey $apiKey -ApiSecret $apiSecret
Get-ZoomUsers : The remote server returned an error: (401) Unauthorized.
At line:1 char:1

Get-ZoomUsers -PageNumber 1 -ApiKey $apiKey -ApiSecret $apiSecret

  • CategoryInfo : InvalidOperation: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ZoomUsers
@JosephMcEvoy
Copy link
Owner

JosephMcEvoy commented Jun 16, 2020

I go to Advanced > App Marketplace > Manage (https://marketplace.zoom.us/user/build) to generate the key/secret. I am logged in as an admin account. The admin role will need the Zoom for developers - Build and publish apps on Marketplace permissions enabled. This is very likely not an issue with PSZoom but your individual Zoom account or overall account configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants