marcospereirampj / python-keycloak

MIT License
692 stars 296 forks source link

enable_user & disable_user broken since keycloak 24? #579

Open thomas-riccardi opened 3 weeks ago

thomas-riccardi commented 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

=> 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

thomas-riccardi commented 1 week ago

I could not reproduce the issue.. is the upgrade doc correct?