# PSZoom - A Powershell module for Zoom's REST API

**URL:** <https://devforum.zoom.us/t/pszoom-a-powershell-module-for-zooms-rest-api/6490>\
**Category:** API and Webhooks\
**Created:** [November 2, 2019, 6:27pm UTC](https://devforum.zoom.us/t/pszoom-a-powershell-module-for-zooms-rest-api/6490 "2019-11-02T18:27:45Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![tom.brix](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tom.brix](https://devforum.zoom.us/u/tom.brix)\
**Post date:** [June 10, 2020, 8:17pm UTC](https://devforum.zoom.us/t/pszoom-a-powershell-module-for-zooms-rest-api/6490/12 "2020-06-10T20:17:33Z")

</div>

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
- 

```auto
  + 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: (🙂 [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
- 

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

---

_[View the full topic](https://devforum.zoom.us/t/pszoom-a-powershell-module-for-zooms-rest-api/6490)._
