<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008C3jUGSAZOkta Classic EngineIntegrationsAnswered2018-08-22T05:26:52.000Z2018-06-11T14:18:49.000Z2018-08-22T05:26:52.000Z
LyleO.07648 likes this.
  • justin.bergez (Regional Customer Success, Bay Area)

    Hi Merlin,

     

    While I can't speak to PowerShell, we do have an API call that can be made against the Okta API, which would return the results you're looking for:

    {{url}}/api/v1/users?filter=lastUpdated gt "yyyy-MM-ddTHH:mm:ss.SSSZ" and status eq "LOCKED_OUT"

     

    In the example above, the Date/Time would be configured for 15 minutes before the API call is made (e.g. "2018-08-21T10:10:00.000Z")

     

    Perhaps this may help steer you in the general direction of where you need to be. Short of that, there are many PSModules written by the Okta community available on GitHub, which may contain some useful cmdlets for you to use in your environment.

    Expand Post
This question is closed.
Loading
Does anyone have a PowerShell script to search the logs for locked out users for the last 15 minutes?