Error: 423 Locked when deleting a user after removing from a usergroup via REST API
search cancel

Error: 423 Locked when deleting a user after removing from a usergroup via REST API

book

Article ID: 447468

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

  • A user is removed from a usergroup using the REST API endpoint DELETE /system/usergroups/{usergroup}/users/{user}.
  • Attempting to delete the user object afterwards results in the following error: 423 Locked.
  • The user object "Usage" tab still lists the user as part of the group, indicating the index did not update.
  • The issue does not occur when the user is removed from the group via the Automic Web Interface (AWI).

Environment

  • Automic Automation Engine 24.4.x
  • REST API

Cause

This is caused by a product defect (DE202885). When a user is deleted from a group via the REST API, the system fails to update the oh_moddate or oh_modcnt fields. This prevents the Java Work Process (JWP) indexer from detecting the change, leading to an inconsistent usage index.

Resolution

Workaround: 

To resolve the locked state manually, rebuild the search indexes:

  1. Stop all Java Work Processes (JWPs).
  2. Navigate to the Automation Engine bin directory and delete the indexCache folder.
  3. Restart the JWPs. The first JWP with the IDX role will rebuild the index from scratch. Refer to KB 142556: Rebuilding AWI search indexes for detailed procedures.

Solution:

Update to a fix version listed below or a newer version if available.

Fix version:
Component(s): Automation Engine

Automation.Engine 24.4.6 - TBA
Automation.Engine 26.1.0 - TBA

Users are recommended to subscribe to this article to be updated on fix status.

Additional Information

Public Title: Search index is not updated when deleting User or User group

Public Description: A problem has been fixed when deleting a user or user group using REST that the search index is not properly updated.