marcospereirampj / python-keycloak

MIT License
704 stars 297 forks source link

feat: Add new method to retrieve the child groups of a specific group. #516

Closed NikolaiES closed 6 months ago

NikolaiES commented 7 months ago

This pull request is in response to issue #509 and the changes introduced to keycloak 23. According to this comment the new expected way to retrieve subgroups is to use the groups/{id}/children endpoint.

This pr adds a new method which uses the children endpoint to fetch the children of the specified group. I also tried to fix the remaining test cases that were failing in tests/test_keycloak_admin.py::test_groups. Tough I am not sure if that is the way you would want it fixed so any feedback there is appreciated as with the rest is appreciated.