fix: Group name list return

This commit is contained in:
dettlaff 2024-12-13 07:25:42 +04:00
parent e90855975e
commit d1590e283b

View file

@ -504,7 +504,7 @@ class KanidmUserRepository(AbstractUserRepository):
for group_data in groups_list_data: for group_data in groups_list_data:
attrs = group_data.get("attrs", {}) attrs = group_data.get("attrs", {})
group = Group( group = Group(
name=attrs["name"], name=attrs["name"][0],
group_class=attrs.get("class", []), group_class=attrs.get("class", []),
member=attrs.get("member", []), member=attrs.get("member", []),
memberof=attrs.get("memberof", []), memberof=attrs.get("memberof", []),