core: optionally don't return groups' users and users' groups by default (#9179)

* core: don't return groups' users and users' groups by default

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* explicitly fetch users and groups in LDAP

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add indicies

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-04-15 13:27:44 +02:00
committed by GitHub
parent bc9984f516
commit 85fedec2f6
13 changed files with 120 additions and 30 deletions

View File

@ -42,6 +42,7 @@ export class GroupListPage extends TablePage<Group> {
page: page,
pageSize: (await uiConfig()).pagination.perPage,
search: this.search || "",
includeUsers: false,
});
}

View File

@ -33,6 +33,7 @@ export class MemberSelectTable extends TableModal<User> {
page: page,
pageSize: (await uiConfig()).pagination.perPage,
search: this.search || "",
includeGroups: false,
});
}

View File

@ -105,6 +105,7 @@ export class RelatedGroupList extends Table<Group> {
pageSize: (await uiConfig()).pagination.perPage,
search: this.search || "",
membersByPk: this.targetUser ? [this.targetUser.pk] : [],
includeUsers: false,
});
}

View File

@ -145,6 +145,7 @@ export class RelatedUserList extends WithBrandConfig(WithCapabilitiesConfig(Tabl
type: this.hideServiceAccounts
? [CoreUsersListTypeEnum.External, CoreUsersListTypeEnum.Internal]
: undefined,
includeGroups: false,
});
this.me = await me();
return users;

View File

@ -38,6 +38,7 @@ export class GroupSelectModal extends TableModal<Group> {
page: page,
pageSize: (await uiConfig()).pagination.perPage,
search: this.search || "",
includeUsers: false,
});
}

View File

@ -146,6 +146,7 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa
search: this.search || "",
pathStartswith: getURLParam("path", ""),
isActive: this.hideDeactivated ? true : undefined,
includeGroups: false,
});
this.userPaths = await new CoreApi(DEFAULT_CONFIG).coreUsersPathsRetrieve({
search: this.search,