You need to sign in to do that
Don't have an account?
DannyC
Access to Standard Object Permissions
In the Profile page there is a "Standard Object Permissions" section. This section enables the option of having "View All" or "Modify All" permission to a class of objects (eg: Accounts, or Opportunities). How can I programmatically read whether these values are set? In which database tables are these configuration options stored?
Danny.
Check the Profile object. For example, there are fields "PermissionsModifyAllData" and "PermissionsViewAllData" on the Profile object. Tools like the Schema Explorer in the force.com ide or Apex Explorer are great tools to view and query your specific salesforce.com schema.
The only access programatically is via metadata: use object DescribeResult.IsAccessible() and IsCreatable().
However this is only works for the "logged in" user... Would not work for if you are trying to get this information for another user in the system.
Schema.DescribeSobjectResult objDs = Schema.getGlobalDescribe().get('Account').getDescribe();
objDs.IsAccessible();
objDs.IsCreatable();