From f0e452c21a0e11b625dd5ee9117123093eccf55f Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Thu, 17 Mar 2022 11:17:54 +0100 Subject: [PATCH] enable user if active when importing --- src/main/java/sh/libre/scim/core/UserAdapter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/sh/libre/scim/core/UserAdapter.java b/src/main/java/sh/libre/scim/core/UserAdapter.java index 11c2472e79..4d7b21d634 100644 --- a/src/main/java/sh/libre/scim/core/UserAdapter.java +++ b/src/main/java/sh/libre/scim/core/UserAdapter.java @@ -130,6 +130,7 @@ public class UserAdapter extends Adapter { kcUser.setRealmId(realmId); kcUser.setUsername(username); kcUser.setEmail(email, false); + kcUser.setEnabled(active); this.em.persist(kcUser); this.id = kcUser.getId(); }