<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

Lock Okta Account via API

Lifecycle Management
Okta Classic Engine
Okta Identity Engine

Overview

This article clarifies whether it is possible to lock an Okta account via API.

Applies To

  • Lifecycle Management
  • Users API

Solution

Locking an Okta account via API is not available. As a workaround, an Administrator may use the API to suspend the user. Please see the Suspend a user documentation for instructions on suspending users via API.

  • An API call example would be:
    POST api/v1/users/InsertUserID/lifecycle/suspend

If successful, there will be a status with "200 ok" as showcased in the screenshot below:

200 ok status

Related References

Loading
Okta Support - Lock Okta Account via API