diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index 5cb004a..07fd27d 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -56,13 +56,13 @@ class KanidmAdminToken: try: kanidm_admin_token = subprocess.check_output( [ - "kanidmd", - "recover-account", - "-c", - "/etc/kanidm/server.toml", - "idm_admin", - "-o", - "json", + "kanidm", + "service-account", + "api-token", + "generate", + "--rw", + "selfprivacy", + "token2", ], text=True, )