-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function "GetGroups" doesn't return the list of all sub-groups #456
Comments
@hosseinjdk Does it return the subgroups if you specify the params in the call you make |
@osmian Thanks for your answer. I tested my function with these 3 variables as an input for "kcClient.client.GetGroups":
All return the same group as a result, I mean only the parent and no subgroups. |
The following api is new in keycloak 23.0.0 for this purpose maybe. |
@hosseinjdk @Nerzal it may be useful to make an MR and add this to the |
Yes, that would make sense. |
As already mentioned here, this workaround will work for getting "all" Groups with their SubGroups
|
Initial method for getting the child groups of a given group, using documentation from #456 (comment)
This method could be modified in the future to include a
|
Thank you very much. This workaround works. |
Describe the bug
After upgrading the Keycloak from "22.0.4" to "23.0.3", I found out that the gocloak function "GetGroups" only returns the parent groups of a realm. The following code is working perfect with Keycloak-v22.0.4:
However we upgraded the Keycloak to "23.0.3" and after that the "GetGroups" returns only the parent groups of a realm.
Expected behavior
"GetGroups" should recursively return all groups including all the sub-groups in tree just like before.
Environment:
The text was updated successfully, but these errors were encountered: