diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index 7e34fd3..91a912f 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -504,7 +504,7 @@ class KanidmUserRepository(AbstractUserRepository): for group_data in groups_list_data: attrs = group_data.get("attrs", {}) group = Group( - name=attrs["name"], + name=attrs["name"][0], group_class=attrs.get("class", []), member=attrs.get("member", []), memberof=attrs.get("memberof", []),