diff --git a/awx/api/generics.py b/awx/api/generics.py index 9655e41642..51598979d8 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -521,4 +521,4 @@ class ResourceAccessList(ListAPIView): ancestors = set() for r in roles: ancestors.update(set(r.ancestors.all())) - return self.request.user.get_queryset(User).filter(roles__in=list(ancestors)).distinct() + return User.objects.filter(roles__in=list(ancestors)).distinct()