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.
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.