Managing zoom rooms via powershell

Hello!

I would like to managing our zoom via powershell. I downloaded the zoomps and i can connect our zoom environment with the
Connect-PSZoom -AccountID ‘XXX’ -ClientID ‘XXX’ -ClientSecret ‘XXX’

Many zoom command works but many important commands not.

for example this doesn’t work:
Restart-zoomroom
The error is:

Invoke-ZoomRestMethod : The remote server returned the following error: (401) Unauthorized.
At C:\Program Files\WindowsPowerShell\Modules\pszoom\2.0.4.1\Public\Rooms\Restart-ZoomRoom.ps1:68 char:25

  • … $response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $RequestBod …
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : AuthenticationError: (https://api.zoo…voqVaw/zrclient:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : 401,Invoke-ZoomRestMethod

Somebody can help me, how can i set the full access for the all commands?

Many thanks!

Hi @zoltan.kiss.4
Thanks for reaching out to us, I am happy to help here!
Could you point me to the integration you are using to make these api calls?

Hello!
I have only Oauth api for connect to zoomps with our environment.

I see @zoltan.kiss.4
Could you share with me what specific endpoints you are trying to call that are giving you errors?

Hi!
I have only this:
PS C:\Users\kisszoltan7\Documents\Visual Studio 2017> Restart-ZoomRoom -RoomId g-GFjHPWToi6XFwQxZVKCQ
Invoke-ZoomRestMethod : A távoli kiszolgáló a következő hibát küldte vissza: (401) Jogosulatlan.
At C:\Program Files\WindowsPowerShell\Modules\pszoom\2.0.4.1\Public\Rooms\Restart-ZoomRoom.ps1:68 char:25

  • … $response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $RequestBod …
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : AuthenticationError: (https://api.zoo…xZVKCQ/zrclient:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : 401,Invoke-ZoomRestMethod

Can you please share the link to the Documentation that you are using to run these commands? @zoltan.kiss.4
I am having trouble understanding your issue.

Hello!
Here is my ps commands:
Import-Module pszoom

Connect-PSZoom -AccountID ‘xxx’ -ClientID ‘xxx’ -ClientSecret ‘xxx’
Restart-ZoomRoom -roomid NPpUZFWAThWAcO_xf1cF1g
After the, this “restart-zoomroom” command invite a PS function. The error message is:
Invoke-ZoomRestMethod : The remote server returned the following error: (401) Unauthorized.”
Many type of command’s result is same

The Doc: PowerShell Gallery | PSZoom 2.0.4.2

Thanks @zoltan.kiss.4
We did not develop this package, so I am not able to give you the right support.
I would suggest you to reach out to the creator of it