How to get object sharing setting on Organization-Wide Defaults (OWD) using Apex? May 11, 2018June 9, 2022InfallibleTechie Admin Use the below query for Standard objects. SOQL: SELECT Id, DefaultAccountAccess, DefaultContactAccess, DefaultLeadAccess, DefaultOpportunityAccess FROM Organization