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
kieran.osullivankieran.osullivan 

What happens if a user executes a schema.describe.getGlobal and they do not have access to certain objects.

What happens if a user executes a schema.describe.getGlobal and they do not have access to certain objects.
What I really want to know here is what level of access do users have to have to use this method.
 
ShashankShashank (Salesforce Developers) 
The user should only see objects that he has access to, as mentioned here: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_global_describe.htm#apex_dynamic_global_describe

It says "It is dynamic, that is, it is generated at runtime on the sObjects currently available for the organization, based on permissions".