<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

Bulk Deactivation of Okta-Sourced Users Using the API or Admin Console

Lifecycle Management
Okta Classic Engine

Overview

Okta does not provide scripts for the bulk deactivation of user accounts, but administrators can leverage the Okta User Application Programming Interface (API) or group rules in the Admin Console to achieve this. Administrators require a method to deactivate multiple Okta-sourced users simultaneously.

Applies To

  • Okta Classic Engine
  • Okta-Sourced Users
  • Lifecycle Management
  • User Application Programming Interface (API)

Solution

What methods exist for the bulk deactivation of Okta-sourced users?

Deactivate users via the Okta User API.

Okta does not provide scripts for the bulk deactivation of user accounts. Administrators can leverage the Okta User API to create API calls to bulk deactivate or delete users via Postman. Refer to the Deactivate User documentation for more information.

 

Deactivate users via the Admin Console.

Alternatively, administrators can deactivate users in bulk via the Admin Console if the users share a common property or belong to a specific group. Create a group, populate it using a group rule, and deactivate the group members using the bulk deactivation tool in the Directory menu.

  1. Navigate to Directory, and then select Groups.
  2. Choose the Rules tab and specify the criteria to populate the group with the users matching the selected criteria.
  3. Activate the rule.
  4. Navigate to the Directory, and then select People.
  5. Choose More Actions, and then select Deactivate.
  6. Select the down arrow next to Search by person, and then choose Search by group.
  7. Enter the name of the group and select it.
  8. Select all group members using the checkbox at the top of the first column, choose Deactivate Selected, and then select Deactivate.

 

The following image shows the selection of group members and the deactivation action in the Admin Console.

Deactivate people

 

Related References

Loading
Bulk Deactivation of Okta-Sourced Users Using the API or Admin Console | Okta Support