What is the purpose of “without sharing” keyword?

What is the purpose of “without sharing” keyword?

Even though a class without any sharing keyword by default is without sharing, the calling class will determine.

If a with sharing class calls a class without any sharing keywords, then sharing rules are enforced.

If a with sharing class calls a class with without sharing keyword, then sharing rules are not enforced.

Leave a Reply