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
bob17bob17 

Can you Package the Organization-Wide Default Sharing on your Custom Object

I have a custom object I am adding to my managed package that I would like installed with the Organization-Wide Default Sharring Setting set to "Private" when the package is installed.  I have the sharing set to Private in the build org and there is APEX code that references the object's __Share object but when I install the object's initial Sharing Setting is Public Read/Write.

 

NOTE: I am only testing so far with a Beta build of the version that includes this new object.  Do not want to commit to a full release build for fear I will not be able to make the necessary change.

 

I know that the installer can go and change the Sharing Setting but that is a deployment step I would like to avoid if possible.

Best Answer chosen by Admin (Salesforce Developers) 
bob17bob17

NEVER MIND!  I was looking at the wrong object after the install.  The new custom object was in fact installed with the default Sharing set to Private.