diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index 0918a63..ba51a33 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -178,7 +178,7 @@ class KanidmUserRepository(AbstractUserRepository): for user in users_data: attrs = user.get("attrs", {}) - origin = KanidmUserRepository._check_user_origin( + origin = KanidmUserRepository._check_user_origin_by_memberof( memberof=attrs.get("memberof", []) ) if exclude_primary and origin == UserDataUserOrigin.PRIMARY: