google-apigoogle-drive-apigoogle-plusservice-accounts

Which Google APIs can be accessed with service account authorization?


I infer from the Google API documentation, that not all of the advertised Google services are available to service accounts.

e.g. In the announcement for service accounts, this was part of the text:

`Service accounts are currently supported by the following Google developer services:

  • Google Cloud Storage
  • Google Prediction API
  • Google URL Shortener
  • Google OAuth 2.0 Authorization Server
  • Google APIs Console
  • Google APIs Client Libraries for Python, Java, and PHP

I understand the first three refer to specific services, the OAuth server and console are infrastructure requirements before any service could be supported, (the last item in the list is a little vague to me.)

I also noticed this reference to Google Drives being available to a service account (very cool).

Is there a comprehensive list of which services are accessible with service account authorization and which are not? I am most interested in Cloud Storage (working now). Google Drive, Google+ Hangouts, and hangouts On Air. (I know the idea of a service account participating in a hangout might seem odd.)


Solution

  • All Google APIs that supports OAuth 2.0 should work with Service Accounts.

    However the 3 products listed above (Cloud Storage, Prediction API and URL Shortner) are the only ones with which it makes real sense to use Service Accounts (i.e. on behalf of your application) all other Google APIs are here to access user's data. You can read the first section of the Application Owned Accounts Drive documentation for more explanations.

    PS: the part of the announcement that said Google APIs Client Libraries for Python, Java, and PHP was meant to say that only our Java, PHP and Python client libraries had built-in classes to use Service Account authorization (the Client credentials flow of OAuth 2.0). Now most of our client libraries have support. Check the code sample in the referred documentation for the full list.