Currently using Gabriel Sroka’s Okat PowerShell module:
Everything is working fine. I’ve incorporated it into an existing PowerShell script I have. In the script, the Okta portion looks like this:
Connect-Okta “MY_API_KEY” “https://my-org.okta.com”
$user = *User running the script enters user info here.
This successfully deactivates the user in Okta (which I want it to do). The PowerShell script exists on a server in which different colleagues can & have to run it. The only issue is, the API key is open to anyone that opens the script. Is there a recommended way in that anyone can run the script, but the API key is concealed?