diff --git a/awx/api/generics.py b/awx/api/generics.py index f7c6803d7478..7c7fda877ec2 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -814,7 +814,7 @@ def get_queryset(self): qs = User.objects.filter(has_roles__in=ancestors) | User.objects.filter(is_superuser=True) auditor_role = RoleDefinition.objects.filter(name="System Auditor").first() if auditor_role: - qs |= User.objects.filter(roleuserassignment__role_definition=auditor_role) + qs |= User.objects.filter(role_assignments__role_definition=auditor_role) return qs.distinct() roles = set(Role.objects.filter(content_type=content_type, object_id=obj.id))