I have a test method which I am trying to run from a particular profile. I am trying to access an object called Interaction and that profile has real all record permission.
When I am running the first query it is working fine and returning results.
system.debug([SELECT Id FROM Interaction]);
This one fails with an error message secure query included inaccessible field.
system.debug([SELECT Id FROM Interaction WITH SECURITY_ENFORCED]);