diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index e137af2..3e5f80c 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -70,7 +70,7 @@ class KanidmUserRepository(AbstractUserRepository): attrs = user.get("attrs", {}) user_type = UserDataUser( uuid=attrs.get("uuid", [None])[0], - name=attrs.get("name", [None])[0], + username=attrs.get("name", [None])[0], ssh_keys=["test"], # TODO displayname=attrs.get("displayname", [None])[0], email=attrs.get("mail", [None])[0],