marcospereirampj / python-keycloak

MIT License
692 stars 296 forks source link

Adding user to a group #561

Closed IanSzejer closed 2 months ago

IanSzejer commented 2 months ago

Hello,

Im using the keycloak image: quay.io/keycloak/keycloak:23.0.1 I tried to update a user and him to a group and it didnt gave an error but it did nothing

Example: kc_admin.update_user(user_id=user_id_keycloak, payload={'groups': ['regular_user']})

Then i did the exact same thing when creating the user and it worked. So definitly is the update user that is failing.

ryshoooo commented 2 months ago

Hi @IanSzejer

As this library just delegates the action to the Keycloak's Admin REST API and does not perform any special handling of the specified payload (at least in the update_user method), I'd direct this report to the upstream project instead https://github.com/keycloak/keycloak. From your description, it sounds like a Keycloak issue rather than a python-keycloak issue.

IanSzejer commented 2 months ago

Yes, i just found and realize is not a issue from the library rather an issue from the endpoint update handling. Thanks!!