Remove AD groups when importing users
This commit is contained in:
parent
ee55d6fd2e
commit
7c73c294b9
|
@ -34,6 +34,8 @@
|
||||||
label: `${option.label} - ${option.subtitle}`,
|
label: `${option.label} - ${option.subtitle}`,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
$: internalGroups = $groups?.filter(g => !g?.scimInfo?.isSync)
|
||||||
|
|
||||||
const validEmails = userEmails => {
|
const validEmails = userEmails => {
|
||||||
if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) {
|
if ($admin.cloud && userEmails.length > MAX_USERS_UPLOAD_LIMIT) {
|
||||||
notifications.error(
|
notifications.error(
|
||||||
|
@ -106,12 +108,12 @@
|
||||||
{/if}
|
{/if}
|
||||||
<RadioGroup bind:value={usersRole} options={roleOptions} />
|
<RadioGroup bind:value={usersRole} options={roleOptions} />
|
||||||
|
|
||||||
{#if $licensing.groupsEnabled}
|
{#if $licensing.groupsEnabled && internalGroups?.length}
|
||||||
<Multiselect
|
<Multiselect
|
||||||
bind:value={userGroups}
|
bind:value={userGroups}
|
||||||
placeholder="No groups"
|
placeholder="No groups"
|
||||||
label="Groups"
|
label="Groups"
|
||||||
options={$groups}
|
options={internalGroups}
|
||||||
getOptionLabel={option => option.name}
|
getOptionLabel={option => option.name}
|
||||||
getOptionValue={option => option._id}
|
getOptionValue={option => option._id}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue