Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions authentik/core/api/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ class UserAccountSerializer(PassiveSerializer):
filterset_class = GroupFilter
ordering = ["name"]

def get_ql_fields(self):
from djangoql.schema import BoolField, StrField

from authentik.enterprise.search.fields import (
JSONSearchField,
)

return [
StrField(Group, "name"),
BoolField(Group, "is_superuser", nullable=True),
JSONSearchField(Group, "attributes", suggest_nested=False),
]

def get_queryset(self):
base_qs = Group.objects.all().select_related("parent").prefetch_related("roles")

Expand Down
1 change: 1 addition & 0 deletions web/src/admin/groups/GroupListPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class GroupListPage extends TablePage<Group> {
"Group users together and give them permissions based on the membership.",
);
public pageIcon = "pf-icon pf-icon-users";
public supportsQL = true;

@property()
order = "name";
Expand Down
1 change: 1 addition & 0 deletions web/src/admin/groups/MemberSelectModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class MemberSelectTable extends TableModal<User> {
}
`,
];
public supportsQL = true;

checkbox = true;
checkboxChip = true;
Expand Down
1 change: 1 addition & 0 deletions web/src/admin/users/GroupSelectModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GroupSelectModal extends TableModal<Group> {
checkboxChip = true;

protected override searchEnabled = true;
public supportsQL = true;

@property()
confirm!: (selectedItems: Group[]) => Promise<unknown>;
Expand Down
Loading