This article clarifies whether it is possible to lock an Okta account via API.
- Lifecycle Management
- Users API
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:
