Open thomas-riccardi opened 3 weeks ago
In the 24.0.5 upgrade doc it is said:
Partial update to user attributes when updating users through the Admin User API is no longer supported
The code for enable_user & disable_user calls update_user with a partial payload: https://github.com/marcospereirampj/python-keycloak/blob/0184e034adf5707234e85582ec2c6436a077df98/src/keycloak/keycloak_admin.py#L660-L680
enable_user
disable_user
update_user
payload
=> it seems it would lose other user attribtes.
I have not tested though.
here they recommend to get full user, and patch object, and send back the full object
I could not reproduce the issue.. is the upgrade doc correct?
In the 24.0.5 upgrade doc it is said:
The code for
enable_user
&disable_user
callsupdate_user
with a partialpayload
: https://github.com/marcospereirampj/python-keycloak/blob/0184e034adf5707234e85582ec2c6436a077df98/src/keycloak/keycloak_admin.py#L660-L680=> it seems it would lose other user attribtes.
I have not tested though.
here they recommend to get full user, and patch object, and send back the full object