diff --git a/awx/api/views.py b/awx/api/views.py index 4ea256c246..1260bb67b4 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1498,7 +1498,7 @@ class HostAllGroupsList(SubListAPIView): def get_queryset(self): parent = self.get_parent_object() self.check_parent_access(parent) - qs = self.request.user.get_queryset(self.model) + qs = self.request.user.get_queryset(self.model).distinct() sublist_qs = parent.all_groups.distinct() return qs & sublist_qs