mbegan / Okta-PSModule

Okta API Powershell Wrapper Module
Other
102 stars 31 forks source link

Unauthorized Error when using any command #65

Closed 6ixnogood closed 1 year ago

6ixnogood commented 1 year ago

To run commands I had to copy the OKTa_Org.ps1 contents into my Okta.psm1 file.

That allowed me to run commands like OktaListActiveUsers. Now I get this error:

PS C:\Windows\System32> oktaListActiveUsers VERBOSE: HTTP/1.1 GET with 0-byte payload VERBOSE: received -byte response of content type application/json Write-Error: errorCode: E0000011; errorSummary: Invalid token provided; errorId: oae5F52UwRnQsOUuKlNn7nhkw causes: WARNING: Microsoft.PowerShell.Commands.HttpResponseException : Unauthorized WARNING: Response status code does not indicate success: 401 (Unauthorized). WARNING: Encountered error, returning limited or empty set

The token is newly created and typed in correctly. Not sure what else to try here.