BUG: REST API User handling broken for some attributes

If no one uses this functions then the probability is small :wink:
I had a look at the interactive API gui and got some strange results.
As you found out the ā€œenforce_pw_changeā€ is rejected as a unknown field. You can use ā€œenforce_password_changeā€ but the transferred value is not used anywhere ā†’ BUG

I think the problem can be found inside this file
cmk/gui/plugins/openapi/restful_objects/request_schemas.py
If the UpdateUser class is changed/extended with the right attributes it will work.

The other two options are completely not available thru the API.
Funny fact - inside the tests files you find all the options you want to set. :slight_smile:
from tests/unit/cmk/gui/plugins/openapi/test_openapi_user.py

2 Likes