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
Phil WPhil W 

Is it possible to change a global class from with sharing to without sharing in a managed package?

I have a global class in my managed package's "API". It is currently "with sharing". However, we realized that it should be "without sharing". Is it possible to change this to "without sharing" in a new version, even though the package has been installed on orgs with it set to "with sharing"?

I ask because I have found that once something is global it is pretty difficult to change it.