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
Richard ParkerRichard Parker 

Organization wide defaults API access

Hi

 

Is there any way to acces the OWD for each object via the SOAP/Metadata API? I have developed a java program that gets the profiles, permission sets but need access to OWD too for replicating security.

 

Any pointers would be very helpful?

 

Thanks

-RP

Jia HuJia Hu
Query Organization object, just like Apex,
Organization a = [Select DefaultAccountAccess, DefaultLeadAccess from Organization];

Doc,
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_organization.htm
Kay DarrKay Darr

Thanks a lot. I somehow missed that object.

 

The object definition suggests we can ony get OWD for standard objects? It seems we cannot get custom objects OWD

using this object. 

 

 

Jia HuJia Hu
Yeah, not sure about the custom objects' OWD.