Werk #17818: UpdateAction: only remove user profiles that fail validation

Component Setup
Title UpdateAction: only remove user profiles that fail validation
Date Apr 1, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0p42 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

In a previous werk (#17817) we introduced an update action that would remove any user profiles that weren't also current Checkmk users, in an attempt to clean up user IDs that weren't valid. However, this change didn't check the validation of these user IDs which was incorrect.

With this werk we now check first if the user profile user ID is not valid, and only then delete it.

To the list of all Werks