Salesforce Fact #920 | Query OWD

We can query the OWD of standard and custom objects using EntityDefinition object. The ExternalSharingModel and InternalSharingModel fields refer to the default external and internal access respectively.

Sample Query: SELECT DeveloperName, QualifiedApiName, ExternalSharingModel, InternalSharingModel FROM EntityDefinition

The possible values are:

Private

Read -> Public Read Only

Edit -> Public Read/Write

ControlledByParent

ControlledByCampaign

Comments

Popular posts from this blog