function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Illegal filter on Attachment

Does anyone know why this query works as an admin but not as a user?  He has access and API enabled.

Select a.Id, a.Name, a.Owner.LastName, a.Owner.FirstName From Attachment a where a.ParentId='a0I500000016QTG' and a.Owner.Id in(
'00550000000mVMfAAM','00550000000mVMiAAM','00550000000mVMlAAM') order by a.Owner.LastName

Check the CRUD and field level security on that user.