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
Stephen RodenStephen Roden 

If no sharing modifiers are encoded what is the default for a batch?

If you have a batch process defined as
global class ABatch implements Database.Batchable<sObject>, Database.Stateful { 
... 
}
and it's executed from the console what sharing rules are in play?
 
UC InnovationUC Innovation
The default should be without sharing:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm