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
mquimqui 

Retrieving System-wide default settings usi Force.com API

Hi

I've been trying to retrieve organization-wide default settings for each object type using the Force.com API (V.14.0) I first thought this would be possible using an SOQL query but there doesn't seem to be a Table holding information about the settings. Am I missing something or is it a know fact that you can't retrieve this information from salesforce?

Thanks
Martin
shillyershillyer

Hi Martin,

Have you taken a look at the Organization object? You can query this for various org wide settings. There's some other org details you can get from getUserInfo().

Hope that helps,

Sati

mquimqui
Thanks a lot, this is exactly what I was looking for.

I do have another question but this time regarding user Profiles: the profile object holds a lot of information but there is some that seems to be missing, such as:

 - time & IP restrictions
 - Field-level security on objects
 - CRUD operation allowed for each object types

All these settings are related to a user profile but somehow they don't appear in any fields of the profile object. Is there any way to retrieve this information as well, using the API?

Martin


shillyershillyer

The Describe calls can give you info on CRUD permissions on objects/fields.

I don't think Login Restriction data is available via the API, but I may be wrong. :-)

Best,

Sati

 

mquimqui
I see that the DescribeSObjectResult object has properties indicating CRUD settings for each object, but the value of these properties are taking into account the Profile of the user currently logged-in.

I was hoping it would be possible to retrieve CRUD settings for each object type/fields for any given Profile.

Still, that answers my question.
Thanks again
Martin
SuperfellSuperfell
try the metadata api.
LegerdemainLegerdemain

I, too, was hoping to get the IP restriction information from profiles either through the web service or metadata APIs.

 

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_profile.htm

I'd also like salesforce to implement: http://ideas.salesforce.com/article/show/37902 (or for others to promote the idea - import of profile IP ranges)

 

Regards,

Larry

Edward RossEdward Ross

I too need to get access to the Sharing Settings Organization Wide Defaults.

 

I looked at the Organization object in the SOAP API:

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_organization.htm

But this doesn't say whether each object has public or private sharing enabled.

 

I looked in the meta data API but it says here:

http://www.salesforce.com/us/developer/docs/api_meta/index.htm

that organization wide defaults are not accessible through the meta-data API.

 

Does anyone know where this information can be accessed?