I'm using the Salesforce REST API along with OAuth 2.0 User-Agent Flow. I have the need to "ping" Salesforce to see if a user is logged on (this is the simplest way to do so in my application). If the result returns a 401 status code, I know I need to log them back on.
The "ping" is a simple SOQL request: select id from account limit 1
I'm concerned that there may be a case where a user does not have access to query the Account object, and therefore the query may fail. Is there a object query, metadata request, etc I could perform that is always guaranteed accessible to the user, regardless of permission settings? (i.e. some universal object that the user has to be able to read)
Salesforce version 31.0