You need to sign in to do that
Don't have an account?
Zach 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:
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.
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.
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.
- https://developer.salesforce.com/forums/?id=906F0000000DC4yIAG
Please let us know if this helps.Kindly mark this as solved if the information was helpful.
Thanks,
Nagendra