From 7b2028562542d86636be35478b6041285bb0f4e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de>
Date: Wed, 8 Mar 2023 12:48:15 +0100
Subject: [PATCH] type in user creation

---
 plugins/unity_integration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py
index eba9fbe..34a4f84 100644
--- a/plugins/unity_integration.py
+++ b/plugins/unity_integration.py
@@ -82,7 +82,7 @@ class UnityIntegrationView(AppBuilderBaseView):
                 role=sec_manager.find_role(role),
                 password=''.join(random.choice(characters) for i in range(20))
             ):
-                fab_user = sec_manager.find_user(name=persistent_identifier)
+                fab_user = sec_manager.find_user(username=persistent_identifier)
                 log.info("Successfully created user " + str(fab_user))
             else:
                 log.error("User creation unsuccessful.")
-- 
GitLab