-
Notifications
You must be signed in to change notification settings - Fork 30
Description
This module works fine running as any authenticated/authorized user from a server on-prem. However, if I try to invoke oktaGetUserById under the local SYSTEM context, it fails to connect to the endpoint.
If I send the URL for the base endpoint (e.g. "https://.oktapreview.com", etc.) and run it through Invoke-WebRequest it works fine, but not as SYSTEM. I have to add -UseBasicParsing in order to get back any useful result. Is this already addressed as a global variable or parameter that I'm not seeing? I'd like to run this from an Azure Automation runbook, but it won't work in Azure and won't work on a hybrid worker unless I provide user credentials (not the SYSTEM default).
Background:
Windows Server 2016
PowerShell 5.1
Execution Policy = byPass
TLS = 1.2