I am always unsure whether to use
with sharing or
without sharing in my classes or to just leave that out. The documentation is part of my confusion.
- Any practical hints?
- When do you use it and in which types of classes (Domain, Service, Util)?
- When do you leave it out?
So the perfect answer would be "When I write the header of a new Apex class I put it in when ....".