From 7c73c294b94fca44a9f6dc79192d30de6fc0705b Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 28 Feb 2024 14:17:46 +0100 Subject: [PATCH] Remove AD groups when importing users --- .../portal/users/users/_components/ImportUsersModal.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/users/users/_components/ImportUsersModal.svelte b/packages/builder/src/pages/builder/portal/users/users/_components/ImportUsersModal.svelte index bb03f166b3..432fb7abb7 100644 --- a/packages/builder/src/pages/builder/portal/users/users/_components/ImportUsersModal.svelte +++ b/packages/builder/src/pages/builder/portal/users/users/_components/ImportUsersModal.svelte @@ -34,6 +34,8 @@ label: `${option.label} - ${option.subtitle}`, })) + $: internalGroups = $groups?.filter(g => !g?.scimInfo?.isSync) + const validEmails = userEmails => { if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) { notifications.error( @@ -106,12 +108,12 @@ {/if} - {#if $licensing.groupsEnabled} + {#if $licensing.groupsEnabled && internalGroups?.length} option.name} getOptionValue={option => option._id} />