Skip to content
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

admin.get_groups not returning group attributes #570

Open
fvallee-bnx opened this issue Jun 7, 2024 · 0 comments
Open

admin.get_groups not returning group attributes #570

fvallee-bnx opened this issue Jun 7, 2024 · 0 comments

Comments

@fvallee-bnx
Copy link

fvallee-bnx commented Jun 7, 2024

reproduced with v4.1.0 and older versions

When calling admin.get_groups, the parent group attributes are missing.
attributes are present in subgroups, but not in parent group

For instance with the parent group "parent" containing attributes the response will be like:

[ { "id": "parent", "name": "parent", "path": "/parent", "subGroupCount": 1, "subGroups": [ { "id": "child", "name": "child", "path": "/parent/child", "parentId": "parent", "subGroupCount": 0, "subGroups": [], "attributes": {}, "realmRoles": [], "clientRoles": {}, "access": { "view": true, "viewMembers": true, "manageMembers": true, "manage": true, "manageMembership": true } } ], "access": { "view": true, "viewMembers": true, "manageMembers": true, "manage": true, "manageMembership": true } } ]

Please note that attributes can be retrieved using get_group_by_path('/parent'), but they should be in get_groups too - especially since they are in subGroups!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant