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
Zach KrzyzanowskiZach Krzyzanowski 

Tooling API query does not work for non system administrator account

I'm running a GET request to the tooling API at https://instance-name.number.my.salesforce.com/services/data/v37.0/tooling/sobjects/ with a non administrator account. This request only returns some objects and is missing all of our standard objects from the response. 

GET request to https://instance-name.number.my.salesforce.com/services/data/v37.0/tooling/sobjects/CustomField/sfidofobject returns:
[
    {
        "errorCode": "NOT_FOUND",
        "message": "The requested resource does not exist"
    }
]

Running the same queries with a system administrator account returns the correct responses with standard objects included. The non-admin account has View All permission to the object being requested.
NagendraNagendra (Salesforce Developers) 
Hi Zach,

Sorry for this issue you are encountering.

May I suggest you please check with below link from the forums community with a similar discussion and a suggested workaround which might help you further with the above requirement. Please let us know if this helps.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra