+ Start a Discussion

404 getting org ID



I am using https://apigee.com to get  https://na12.salesforce.com/services/data/v23.0/sobjects/Organization/00DU0000000JiqwMAC


but I get 


HTTP/1.1 404 Not Found

Date: Tue, 29 Nov 2011 22:28:56 GMT

Content-Length: 90

Content-Type: application/json; charset=UTF-8

Connection: close

Server:  [ { "message": "The requested resource does not exist", "errorCode": "NOT_FOUND" } ]


Any ideas?




In the above post, we are using the instance URL and Organization ID returned from a REST call on OAuth.  Seems strange that the organization cannot be found when it is the same org id in his response and when viewed in his profile on Salesforce.com.


Same problem here, too.

It appears to be related to the type of user that you make the request as.

If you are a Salesforce Standard User - it will result in 404.

If you are a System Administrator, the request succeeds.


In fact, if you request /sobjects you can see that the entry for "Organization" is missing from request by non-System Administrator.


It's annoying though - as you note, the same data is perfectly visible with those credentials at Salesforce.com


Can someone from SF comment if this is intentional?