Skip to main content

How to deploy Organization-Wide Sharing Defaults

Guidelines on how to retrieve and deploy Organization-Wide sharing defaults

Mykyta Nechepurenko avatar
Written by Mykyta Nechepurenko
Updated over 3 weeks ago

Overview

Organization-Wide Defaults (OWD) set the baseline internal and external access for every object in your Salesforce org. Gearset surfaces OWD changes under the Custom object metadata type.

The relevant metadata fields

Inside the .object file:

  • <sharingModel> - Default Internal Access

  • <externalSharingModel> - Default External Access (only if External Sharing Model is enabled)

Salesforce supports standard values like Private, Read, ReadWrite, ReadWriteTransfer, FullAccess, or ControlledByParent depending on object type.

Deploying OWD

  1. Make sure your deployment filter includes the Custom Object metadata type and the objects whose OWD settings were changed.

  2. Select relevant Custom object(s).

  3. When those Custom object definitions are deployed, their <sharingModel> and (if applicable) <externalSharingModel> values are deployed with them automatically.
    ​

    Here's an example of the Read OWD on the Opportunity object in a Gearset comparison:

Did this answer your question?