Werk #15980: user: return 400 status code when trying to create or edit an user specifying a non existing customer

Component REST API
Title user: return 400 status code when trying to create or edit an user specifying a non existing customer
Date Jul 14, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Prior to this werk, the user setup endpoint returned a 500 status code whenever the user tried to create or update an user specifiying a non-existing customer. This werk fixes this and returns a 400 status code instead

To the list of all Werks